<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="java.util.Date" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ taglib prefix="C" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
	SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
	String date= format.format(new Date());
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name=renderer content=ie-stand>
	<title>Insert title here</title>
	<script type="text/javascript" src="<%=path%>/JQuery/jquery-1.8.2.js"></script>
	<%@ include file="/WEB-INF/JSP/ajax.jsp"%>
	<%@ include file="/WEB-INF/JSP/backHome/modalWindows/studentStateCommon.jsp"%>
	<script type="text/javascript" src="<%=path%>/common/upImg/upImg.js"></script>
	<script type="text/javascript" src="<%=path%>/common/stopBrowerBack.js"></script>
	<script type="text/javascript" src="<%=path%>/common/changeName.js"></script>
	<script type="text/javascript" src="<%=path%>/common/pinying.js"></script>
	<script type="text/javascript" src="<%=path%>/My97DatePicker/WdatePicker.js"></script>
	<link rel="stylesheet" type="text/css" href="<%=path%>/easyUI1.4.1/themes/default/easyui.css">
	<script type="text/javascript" src="<%=path%>/easyUI1.4.1/jquery.easyui.min.js"></script>
	<!-- 本地语言 -->
	<script type="text/javascript" src="<%=ajaxPath%>/easyUI1.4.1/locale/easyui-lang-zh_CN.js"></script>
	<link rel="stylesheet" type="text/css" href="<%=path%>/CSS/backLayout.css">
	<link rel="stylesheet" type="text/css" href="<%=path%>/CSS/bombBox.css" >
</head>
<style>
	.findBtn{
		background: #427dff;
		border-radius: 50px;
		background: -webkit-linear-gradient(top,#57a0ff,#57a1ff);
		background: -moz-linear-gradient(top,#57a0ff,#57a1ff);
		background: linear-gradient(top,#57a0ff,#57a1ff);
		background: -ms-linear-gradient(top,#57a0ff,#57a1ff);
		border: 1px solid #2576A8;
		box-shadow: 0 1px 2px #8AC1E2 inset,0 -1px 0 #57a0ff inset;
		color: #fff;
		height:40px;
		text-shadow: 1px 1px 0.5px #57a0ff;
		outline:none;
		margin-left: 100px
	}

	.findBtn1{
		background: #427dff;
		border-radius: 50px;
		background: -webkit-linear-gradient(top,#57a0ff,#57a1ff);
		background: -moz-linear-gradient(top,#57a0ff,#57a1ff);
		background: linear-gradient(top,#57a0ff,#57a1ff);
		background: -ms-linear-gradient(top,#57a0ff,#57a1ff);
		border: 1px solid #2576A8;
		box-shadow: 0 1px 2px #8AC1E2 inset,0 -1px 0 #57a0ff inset;
		color: #fff;
		height:40px;
		text-shadow: 1px 1px 0.5px #57a0ff;
		outline:none;
		margin-left: 100px
	}
	.findBtn2{
		background: #427dff;
		border-radius: 50px;
		background: -webkit-linear-gradient(top,#57a0ff,#57a1ff);
		background: -moz-linear-gradient(top,#57a0ff,#57a1ff);
		background: linear-gradient(top,#57a0ff,#57a1ff);
		background: -ms-linear-gradient(top,#57a0ff,#57a1ff);
		border: 1px solid #2576A8;
		box-shadow: 0 1px 2px #8AC1E2 inset,0 -1px 0 #57a0ff inset;
		color: #fff;
		height:40px;
		text-shadow: 1px 1px 0.5px #57a0ff;
		outline:none;
		margin-left: 100px
	}
	.findBtn:hover{
		background: -webkit-linear-gradient(top, #8DC9EF, #4E9FD1);
		background: -moz-linear-gradient(top, #8DC9EF, #4E9FD1);
		background: linear-gradient(top, #8DC9EF, #4E9FD1);
		background: -ms-linear-gradient(top, #8DC9EF, #4E9FD1);
	}
	.findBtn1:hover{
		background: -webkit-linear-gradient(top, #8DC9EF, #4E9FD1);
		background: -moz-linear-gradient(top, #8DC9EF, #4E9FD1);
		background: linear-gradient(top, #8DC9EF, #4E9FD1);
		background: -ms-linear-gradient(top, #8DC9EF, #4E9FD1);
	}
	.findBtn2:hover{
		background: -webkit-linear-gradient(top, #8DC9EF, #4E9FD1);
		background: -moz-linear-gradient(top, #8DC9EF, #4E9FD1);
		background: linear-gradient(top, #8DC9EF, #4E9FD1);
		background: -ms-linear-gradient(top, #8DC9EF, #4E9FD1);
	}

	/**按钮样式**/
	.subtn{
		background: #57a0ff;
		border-radius: 50px;
		background: -webkit-linear-gradient(top,#57a0ff,#57a1ff);
		background: -moz-linear-gradient(top,#57a0ff,#57a1ff);
		background: linear-gradient(top,#57a0ff,#57a1ff);
		background: -ms-linear-gradient(top,#57a0ff,#57a1ff);
		border: 1px solid #2576A8;
		box-shadow: 0 1px 2px #8AC1E2 inset,0 -1px 0 #57a0ff inset;
		color: #fff;
		height:40px;
		text-shadow: 1px 1px 0.5px #57a0ff;
		outline:none;
	}
	/**按钮样式**/
	.subtn1{
		background:#57a0ff;
		border-radius: 50px;
		background: -webkit-linear-gradient(top,#57a0ff,#57a1ff);
		background: -moz-linear-gradient(top,#57a0ff,#57a1ff);
		background: linear-gradient(top,#57a0ff,#57a1ff);
		background: -ms-linear-gradient(top,#57a0ff,#57a1ff);
		border: 1px solid #2576A8;
		box-shadow: 0 1px 2px #8AC1E2 inset,0 -1px 0 #57a0ff inset;
		color: #fff;
		height:40px;
		text-shadow: 1px 1px 0.5px #22629B;
		outline:none;
	}
	.subtn2{
		background:#57a0ff;
		border-radius: 50px;
		background: -webkit-linear-gradient(top,#57a0ff,#57a1ff);
		background: -moz-linear-gradient(top,#57a0ff,#57a1ff);
		background: linear-gradient(top,#57a0ff,#57a1ff);
		background: -ms-linear-gradient(top,#57a0ff,#57a1ff);
		border: 1px solid #2576A8;
		box-shadow: 0 1px 2px #8AC1E2 inset,0 -1px 0 #57a0ff inset;
		color: #fff;
		height:40px;
		text-shadow: 1px 1px 0.5px #22629B;
		outline:none;
	}
	.btn{
		background: #57a0ff;
		border-radius: 50px;
		background: -webkit-linear-gradient(top,#57a0ff,#57a1ff);
		background: -moz-linear-gradient(top,#57a0ff,#57a1ff);
		background: linear-gradient(top,#57a0ff,#57a1ff);
		background: -ms-linear-gradient(top,#57a0ff,#57a1ff);
		border: 1px solid #2576A8;
		box-shadow: 0 1px 2px #8AC1E2 inset,0 -1px 0 #57a0ff inset;
		color: #fff;
		height:40px;
		text-shadow: 1px 1px 0.5px #22629B;
		outline:none;
	}


	/* 按钮滑过样式 */
	.subtn:hover{
		background: -webkit-linear-gradient(top, #8DC9EF, #4E9FD1);
		background: -moz-linear-gradient(top, #8DC9EF, #4E9FD1);
		background: linear-gradient(top, #8DC9EF, #4E9FD1);
		background: -ms-linear-gradient(top, #8DC9EF, #4E9FD1);
	}
	.subtn1:hover{
		background: -webkit-linear-gradient(top, #8DC9EF, #4E9FD1);
		background: -moz-linear-gradient(top, #8DC9EF, #4E9FD1);
		background: linear-gradient(top, #8DC9EF, #4E9FD1);
		background: -ms-linear-gradient(top, #8DC9EF, #4E9FD1);
	}
	.subtn2:hover{
		background: -webkit-linear-gradient(top, #8DC9EF, #4E9FD1);
		background: -moz-linear-gradient(top, #8DC9EF, #4E9FD1);
		background: linear-gradient(top, #8DC9EF, #4E9FD1);
		background: -ms-linear-gradient(top, #8DC9EF, #4E9FD1);
	}
	.btn:hover {
		background: -webkit-linear-gradient(top, #8DC9EF, #4E9FD1);
		background: -moz-linear-gradient(top, #8DC9EF, #4E9FD1);
		background: linear-gradient(top, #8DC9EF, #4E9FD1);
		background: -ms-linear-gradient(top, #8DC9EF, #4E9FD1);
	}


	table tr{
		height: 20px;padding-top: 20px;padding-left: 200px;
	}

	table td {
		padding-top: 10px;
	}
	input{
		width:200px;
		font-size: 17px;
	}

	/* css代码 */
	/* 遮罩层 */
	#modal-overlay {
		visibility: hidden;
		position: fixed;
		text-align: center;
		filter: alpha(opacity=70); background-color: #000;
		z-index: 100; left: 0px;  top: 0px;bottom: 0px;
		width: 100%;
		height: 100%;
		opacity:0.7; -moz-opacity:0.7;
		/* ease:逐渐慢下来；linear:匀速；ease-in:由慢到快；ease-out:由快到慢；ease-in-out:先慢到快再到慢*/
	}
	/*内容*/
	.modal-data {
		visibility: hidden;
		z-index: 1001;
		width: 70%;
		min-height: 500px;
		margin: 100px auto;
		background-color: #FFFFFF;
		/* border: 1px solid #C80B14;*/
		-moz-box-shadow:0 10px 20px #8AC1E2 inset,0 -10px 0 #57a0ff inset;
		-webkit-box-shadow:0 10px 20px #8AC1E2 inset,0 -10px 0 #57a0ff inset;
		/*         box-shadow:0 0 10px #cccccc;
                box-shadow: #cccccc; */
		box-shadow: 0 10px 20px #57a1ff inset,0 -10px 0 #57a0ff inset;
		padding: 5px;
		text-align: center;
		position: fixed;
		left: 15%;
	}
	.modal-data tr:FIRST-CHILD td{padding: 0}
	.modal-data tr{padding-top: 30px}
	.modal-data form table {
		margin: 0px
	}

	.modal-data1 {
		visibility: hidden;
		z-index: 1001;
		width: 70%;
		min-height: 500px;
		margin: 100px auto;
		background-color: #FFFFFF;
		/* border: 1px solid #C80B14;*/
		-moz-box-shadow:0 10px 20px #8AC1E2 inset,0 -10px 0 #57a0ff inset;
		-webkit-box-shadow:0 10px 20px #8AC1E2 inset,0 -10px 0 #57a0ff inset;
		/*         box-shadow:0 0 10px #cccccc;
                box-shadow: #cccccc; */
		box-shadow: 0 10px 20px #57a1ff inset,0 -10px 0 #57a0ff inset;
		padding: 5px;
		text-align: center;
		position: fixed;
		left: 15%;
	}

	.modal-data1 td{padding-left: 15px;padding-right: 15px}
	.modal-data1 tr:FIRST-CHILD td{padding: 0px 10px;}
	.modal-data1 tr{padding-top: 30px}
	.modal-data1 form table {
		margin: 0px
	}

	.modal-data2 {
		visibility: hidden;
		z-index: 1001;
		width: 70%;
		min-height: 500px;
		margin: 100px auto;
		background-color: #FFFFFF;
		/* border: 1px solid #C80B14;*/
		-moz-box-shadow:0 10px 20px #8AC1E2 inset,0 -10px 0 #57a0ff inset;
		-webkit-box-shadow:0 10px 20px #8AC1E2 inset,0 -10px 0 #57a0ff inset;
		/*         box-shadow:0 0 10px #cccccc;
                box-shadow: #cccccc; */
		box-shadow: 0 10px 20px #57a1ff inset,0 -10px 0 #57a0ff inset;
		padding: 5px;
		text-align: center;
		position: fixed;
		left: 15%;
	}
	.modal-data2 td{padding-left: 15px;padding-right: 15px}
	.modal-data2 tr:FIRST-CHILD td{padding: 0px 10px;}
	.modal-data2 tr{padding-top: 30px}
	.modal-data2 form table {
		margin: 0px
	}

	/*	上传图片样式*/
	.fileinput-button {
		position: relative;
		display: inline-block;
		overflow: hidden;
		border-radius: 5px;
		background: #57a0ff;
		background: -webkit-linear-gradient(top,#57a0ff,#57a1ff);
		background: -moz-linear-gradient(top,#57a0ff,#57a1ff);
		background: linear-gradient(top,#57a0ff,#57a1ff);
		background: -ms-linear-gradient(top,#57a0ff,#57a1ff);
		border: 1px solid #2576A8;
		box-shadow: 0 1px 2px #8AC1E2 inset,0 -1px 0 #57a0ff inset;
		color: #fff;
		height:30px;
		margin-left:20px;
		margin-top: 10px;
		text-shadow: 1px 1px 0.5px #22629B;
		outline:none;
		line-height:30px;
		font-size:14px;
	}

	.fileinput-button input{
		position: absolute;
		left: 0px;
		top: 0px;
		opacity: 0;
		-ms-filter: 'alpha(opacity=0)';
	}
	select{
		font-size: 16px;
	}
	select option{
		width: 214px;
	}
</style>
<body style="background: #f5f5f5">
<OBJECT classid="clsid:10946843-7507-44FE-ACE8-2B3483D179B7"
		id="CVR_IDCard" name="CVR_IDCard" width="0" height="0" >
</OBJECT>

<script language="javascript" type ="text/javascript">

    function ClearForm() {
        $('#fnameL2').val('')
        $('#cfidcardno').val('')
        $('#cfbirthday').val('')
        $('#cfnation').val('')
        $('#cfaddress').val('')
        var img = document.getElementById("images");
        img.src = ''
        return true;
    }
    function Button1_onclick() {
        var CVR_IDCard = document.getElementById("CVR_IDCard");
        var strReadResult = CVR_IDCard.ReadCard();
        if(strReadResult == "0")
        {
            /* alert(CVR_IDCard.Name)*/
            ClearForm();
            /*$('#images').src(CVR_IDCard.Pic)*/
            /*     document.all['pic'].src = CVR_IDCard.Pic;*/
            /* var img = document.getElementById("images");
                 img.src = CVR_IDCard.Pic*/
            var time = CVR_IDCard.Born
            var time1 = time.replace('年','-')
            var time2 = time1.replace('月','-')
            var birthday = time2.split("日")[0]
            $('#fnameL2').val(CVR_IDCard.Name)
            $('#cfidcardno').val(CVR_IDCard.CardNo)
            $('#cfbirthday').val(birthday)
            $('#cfnation').val(CVR_IDCard.Nation)
            $('#cfaddress').val(CVR_IDCard.Address)
            $(".cfsex option").each(function(){
                if($(this).html() == CVR_IDCard.Sex){
                    $(this).attr("selected",true)
                }
            });

            $.ajax({
                url:'<%=path%>/DrivingSys/readTxtImage',
                type: "post",
                data: {imageData:CVR_IDCard.Picture},
                dataType:"json",
                success: function(json) {
                    /*  alert(json)*/
                    var img = document.getElementById("images");
                    img.src = 'readTxtImage?c='+Math.random()
                    main()

                },
                error: function(){alert('Error');}
            });
            var nowDateTime  = new Date();
            var birthDate = birthday.split("-")[0];
            var age = nowDateTime.getFullYear() - birthDate;
            if (nowDateTime.getMonth()+1 < birthday.split("-")[1] || (nowDateTime.getMonth()+1 == birthday.split("-")[1] && nowDateTime.getDate() < birthday.split("-")[2])) {
                age--;
            }
            $('.fdescriptionL1').val(age)
            /*document.all['Sex'].value = CVR_IDCard.Sex;
            document.all['Nation'].value = CVR_IDCard.Nation;
            document.all['Born'].value = CVR_IDCard.Born;
            document.all['Address'].value = CVR_IDCard.Address;
            document.all['CardNo'].value = CVR_IDCard.CardNo;
            document.all['IssuedAt'].value = CVR_IDCard.IssuedAt;
            document.all['EffectedDate'].value = CVR_IDCard.EffectedDate;
            document.all['ExpiredDate'].value = CVR_IDCard.ExpiredDate;
            document.all['SAMID'].value = CVR_IDCard.SAMID;
            document.all['pic'].src = CVR_IDCard.Pic;
            document.all['Picture'].value = CVR_IDCard.Picture;
            document.all['PictureLen'].value = CVR_IDCard.PictureLen*/
        }
        else
        {
            ClearForm();
            alert(strReadResult);
        }

    }
</script>
<div class="main" >
	<div id="modal-overlay">

	</div>
	<div class="modal-data">
		<div style="height: 60px">
			<ul>
				<li  style="text-align: left;margin-left: 60px;height: 40px;line-height: 40px">
					<span>名称：</span>
					<span>
				  		 	<input class="name" type="text" >
				  		</span>
					<span>
				  			<button class="findBtn">
				  				查询
				  			</button>
				  		</span>
				</li>
			</ul>
		</div>
		<form action="">
			<table width="100%" class="head" style="border-spacing:0px">
				<tr style="background: #f2f2f2;height: 30px;line-height: 20px;" class="sel">
					<td style="width: 20px"></td>
					<td>
						名称
					</td>
					<td>
						编码
					</td>
					<td>
						简称
					</td>
					<td>
						描述
					</td>
					<td>
						创建时间
					</td>
					<td>
						用户名
					</td>
					<td>
						最后修改时间
					</td>
					<td>
						用户名
					</td>
				</tr>
				<c:forEach items="${trainTypes}" var="trainType" >
					<tr style="margin-top: 45px" class="typeData">
						<td>
							<input style="width: 15px;height: 15px" type="checkbox" name="train"  value="${trainType.fid}">
						</td>
						<td>${trainType.fnameL2}</td>
						<td>${trainType.fnumber}</td>
						<td>${trainType.fsimplename}</td>
						<td>${trainType.fdescriptionL2}</td>
						<td>${trainType.fcreatetime}</td>
						<td>${trainType.fcreateName}</td>
						<td>${trainType.flastupdatetime}</td>
						<td>${trainType.flastupdateName}</td>
					</tr>
				</c:forEach>
			</table>
		</form>
		<button class="subtn" style="width: 150px;position: absolute;bottom: 25px;font-size: 16px;left: 280px" >
			确定
		</button>
		<button class="btn" style="width: 150px;position: absolute;bottom: 25px;font-size: 16px;right: 280px" >
			关闭
		</button>
	</div>

	<div class="modal-data1" >
		<div style="height: 60px">
			<ul>
				<li  style="text-align: left;margin-left: 60px;height: 40px;line-height: 40px">
					<span>名称：</span>
					<span>
				  		 	<input class="name1" type="text" >
				  		</span>
					<span>
				  			<button class="findBtn1">
				  				查询
				  			</button>
				  		</span>
				</li>
			</ul>
		</div>
		<div style="width:100%; height:350px; overflow:scroll;">
			<form action="">
				<table class="head1"  style="width: auto;white-space:nowrap;border-spacing:0px">
					<tr style="background: #f2f2f2;height: 30px;line-height: 20px;" class="sel">
						<td style="width: 20px"></td>
						<td>
							编码
						</td>
						<td>
							名称
						</td>
						<td>
							金额
						</td>
						<td>
							简称
						</td>
						<td>
							描述
						</td>
						<td>
							创建时间
						</td>
						<td>
							用户名
						</td>
						<td>
							最后修改时间
						</td>
						<td>
							用户名
						</td>
						<td>
							财务组织
						</td>
						<td>
							适用车辆
						</td>
						<td>
							是否包考试费
						</td>
						<td>
							是否包练车
						</td>
						<td>
							VIP
						</td>
						<td>
							特训班
						</td>
						<td>
							状态
						</td>
					</tr>
					<c:forEach items="${clazzs}" var="clazz" >
						<tr class="classData" style="margin-top: 45px" >
							<td>
								<input style="width: 15px;height: 15px" type="checkbox" name="clazz"  value="${clazz.fid}">
							</td>
							<td>${clazz.fnumber}</td>
							<td>${clazz.fnameL2}</td>
							<td>${clazz.cfprice}</td>
							<td>${clazz.fsimplename}</td>
							<td>${clazz.fdescriptionL2}</td>
							<td>${clazz.fcreatetime}</td>
							<td>${clazz.createName}</td>
							<td>${clazz.flastupdatetime}</td>
							<td>${clazz.updateName}</td>
							<td>${clazz.cfficompanyName}</td>
							<td>${clazz.cfsycl}</td>
							<c:if test="${clazz.cfksf ne 1}">
								<td><input style="width: 15px;height: 15px" type="checkbox" disabled="disabled"></td>
							</c:if>
							<c:if test="${clazz.cfksf eq 1}">
								<td><input style="width: 15px;height: 15px" type="checkbox" checked="checked" disabled="disabled"></td>
							</c:if>
							<c:if test="${clazz.cflc ne 1}">
								<td><input style="width: 15px;height: 15px" type="checkbox" disabled="disabled"></td>
							</c:if>
							<c:if test="${clazz.cflc eq 1}">
								<td><input style="width: 15px;height: 15px" type="checkbox" checked="checked" disabled="disabled"></td>
							</c:if>
							<c:if test="${clazz.cfvip ne 1}">
								<td><input style="width: 15px;height: 15px" type="checkbox" disabled="disabled"></td>
							</c:if>
							<c:if test="${clazz.cfvip eq 1}">
								<td><input style="width: 15px;height: 15px" type="checkbox" checked="checked" disabled="disabled"></td>
							</c:if>
							<c:if test="${clazz.cftx ne 1}">
								<td><input style="width: 15px;height: 15px" type="checkbox" disabled="disabled"></td>
							</c:if>
							<c:if test="${clazz.cftx eq 1}">
								<td><input style="width: 15px;height: 15px" type="checkbox" checked="checked" disabled="disabled"></td>
							</c:if>
							<td>启用</td>
						</tr>
					</c:forEach>
				</table>
			</form>
			<button class="subtn1" style="width: 150px;position: absolute;bottom: 25px;font-size: 16px;left: 280px" >
				确定
			</button>
			<button class="btn" style="width: 150px;position: absolute;bottom: 25px;font-size: 16px;right: 280px" >
				关闭
			</button>
		</div>
	</div>

	<div class="modal-data2" >
		<div style="height: 60px">
			<ul>
				<li  style="text-align: left;margin-left: 60px;height: 40px;line-height: 40px">
					<span>名称：</span>
					<span>
				  		 	<input class="name2" type="text" >
				  		</span>
					<span>
				  			<button class="findBtn2">
				  				查询
				  			</button>
				  		</span>
				</li>
			</ul>
		</div>
		<div style="width:100%; height:350px; overflow:scroll;">
			<form action="">
				<table class="head2" style="width: auto;white-space:nowrap;border-spacing: 0px">
					<tr style="background: #f2f2f2;height: 30px;line-height: 20px;" class="sel">
						<td style="width: 20px"></td>
						<td>
							编码
						</td>
						<td>
							名称
						</td>
						<td>
							部门
						</td>
						<td>
							身份证号码
						</td>
						<td>
							手机号码
						</td>
						<td>
							性别
						</td>
						<td>
							地址
						</td>
						<td>
							出生日期
						</td>
						<td>
							转正日期
						</td>
						<td>
							离职日期
						</td>
						<td>
							社保编号
						</td>
						<td>
							入职日期
						</td>
						<td>
							车辆
						</td>
						<td>
							员工类型
						</td>
						<td>
							合同到期日期
						</td>
						<td>
							薪酬调整
						</td>
						<td>
							岗位异动
						</td>
						<td>
							请假记录
						</td>
						<td>
							违纪奖励记录
						</td>
						<td>
							社会保险记录
						</td>
						<td>
							计算招生提成
						</td>
						<td>
							计算培训提成
						</td>
					</tr>

					<tr style="margin-top: 45px" >
						<td>
							<div class="loading"></div>
						</td>
					</tr>

				</table>
			</form>
			<button class="subtn2" style="width: 150px;position: absolute;bottom: 25px;font-size: 16px;left: 280px" >
				确定
			</button>
			<button class="btn" style="width: 150px;position: absolute;bottom: 25px;font-size: 16px;right: 280px" >
				关闭
			</button>
		</div>
	</div>
	<div class="weizhi">
		学员管理>>学员入学登记>>详情
	</div>
	<div class="div_body" style="min-height: 800px;">
		<div class="div_top" >
			<ul>
				<li class="top_zl active">基础资料</li>
				<li class="top_zl">服务日志</li>
				<li class="top_zl">考试情况</li>
				<li class="top_zl">档案信息</li>
				<li class="top_zl">练车信息</li>
				<li ><button  onClick="return Button1_onclick()" class="input_submit" style="width: 100px;float:left;margin:-8px 70px" >读取身份证</button></li>
			</ul>
		</div>


		<c:if test="${flag eq 1 }">
			<div class="div_form" style="margin: 0 20px;width: auto;">
				<form id="form" action="<%=path%>/DrivingSys/saveStudent"  method="post" <%--class="form" --%>enctype="multipart/form-data">
					<table  style="width:100%;margin-top:20px">
						<tr >
							<td rowspan="5" id="image" style="width: 100px">
									<%--<input type="file" name="file" value="上传图片">点击选择文件--%>
								<img   width="150px" id="images" name="pic" src=""  >
								<input type="hidden" id="file"  name="file" value="">
							</td>
							<td>驾校:</td>
							<td>
								<input  type="text" value="${department.fnameL2}"  disabled="disabled" style="color: gray;"/>
								<input type="hidden" name="cfficompanyid"  value="${department.fid}" >
								<input type="hidden" name="cfshortpinyin" id="cfshortpinyin"  >
								<input type="hidden" name="cfpinyin"  id="cfpinyin" >
							</td>
							<td>国籍:</td>
							<td><input  type="text" name="cfnationalityid"  value="中国"  style="color: gray;"/></td>
							<td>学员状态:</td>

							<td>
								<select style="width: 204px;height: 31px" name="cfstudentstate">
									<option value="1" selected="selected" style="font-size: 16px">已报名 </option>
									<option value="2" style="font-size: 16px">科目一通过</option>
									<option value="3" style="font-size: 16px">科目一未通过 </option>
									<option value="4" style="font-size: 16px">科目二通过,科目三未开始</option>
									<option value="5" style="font-size: 16px">科目二未通过,科目三未开始 </option>
									<option value="6" style="font-size: 16px">科目二练车中,科目三未开始</option>
									<option value="7" style="font-size: 16px">科目三通过,科目二通过 </option>
									<option value="8" style="font-size: 16px">科目三未通过,科目二通过</option>
									<option value="9" style="font-size: 16px">科目三练车中,科目二通过 </option>
									<option value="10" style="font-size: 16px">已结业</option>
									<option value="11" style="font-size: 16px">已退学,未退款 </option>
									<option value="12" style="font-size: 16px">模拟考试合格</option>
									<option value="13" style="font-size: 16px">已过期 </option>
									<option value="14" style="font-size: 16px">作废</option>
									<option value="15" style="font-size: 16px">科目三练车中,科目二未通过 </option>
									<option value="16" style="font-size: 16px">科目三练车中,科目二未开始</option>
									<option value="17" style="font-size: 16px">科目三通过,科目二未通过 </option>
									<option value="18" style="font-size: 16px">科目三通过,科目二练车中</option>
									<option value="19" style="font-size: 16px">科目三通过,科目二未开始 </option>
									<option value="20" style="font-size: 16px">科目二未通过,科目三未通过</option>
									<option value="21" style="font-size: 16px">科目三未通过，科目二未开始</option>
									<option value="22" style="font-size: 16px">科目二练车中,科目三未通过</option>
								</select>
							</td>
						</tr>
						<tr>
							<td>学员编码:</td>
							<td><input  type="text" name="fnumber"   disabled="disabled" style="color: gray;"/></td>
							<td>身份证号码:</td>
							<td><input  type="text" id="cfidcardno" name="cfidcardno"  value=""  style="color: gray;"/>
								<span style="font-size: 14px;padding-left: 5px;color:#FF4D64">必填</span>
							</td>
							<td>入学日期:</td>
							<td>
								<input type="text" id="cfrxsj" name="cfrxsj" value="<%=date%>"  onclick="WdatePicker({el:'cfrxsj',dateFmt:'yyyy-MM-dd'})" >
								<img onclick="WdatePicker({el:'cfrxsj',dateFmt:'yyyy-MM-dd '})"
									 src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
							</td>
						</tr>
						<tr>
							<td>姓名:</td>
							<td><input  type="text" id="fnameL2" name="fnameL2"   style="color: gray;"/>
								<span style="font-size: 14px;padding-left: 5px;color:#FF4D64">必填</span>
							</td>
							<td>民族:</td>
							<td><input  type="text" id="cfnation" name="cfnation"  value="汉"  style="color: gray;"/>
							</td>
							<td>培训类型:</td>
							<td class="trainType">
									<%-- <select style="width: 204px;height: 31px" name="cfssjgid">
                                        <option value="0"></option>
                                      <c:forEach items="${trainTypes}" var="trainType">
                                        <option value="${trainType.fid}">${trainType.fnameL2}</option>
                                      </c:forEach>
                                    </select> --%>
								<input type="text" value="" />
								<input type="hidden" name="cftraintypeid"  value="" >
							</td>
						</tr>
						<tr>
							<td>性别:</td>
							<td>
								<select class="cfsex" style="width: 204px;height: 31px" name="cfsex">
									<option value="1" style="font-size: 16px">男</option>
									<option  value="2" style="font-size: 16px">女</option>
								</select>
							</td>
							<td>出生日期:</td>
							<td>
								<input type="text" id="cfbirthday" name="cfbirthdays"  onclick="WdatePicker({el:'cfbirthday',dateFmt:'yyyy-MM-dd'})" >
								<img onclick="WdatePicker({el:'cfbirthday',dateFmt:'yyyy-MM-dd'})"
									 src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
							</td>
							<td>申领类型:</td>
							<td>
								<select style="width: 204px;height: 31px" name="cfsllx" class="cfsllx">
									<option value="1" style="font-size: 16px">初次申领</option>
									<option value="2" style="font-size: 16px">增加准驾车型</option>
									<option value="3" style="font-size: 16px">持军官驾驶证 </option>
									<option value="4" style="font-size: 16px">持境外驾驶证</option>
								</select>
								<span style="font-size: 14px;padding-left: 5px;color:#FF4D64">必填</span>
							</td>
						</tr>
						<tr>
							<td>本地/异地:</td>
							<td>
								<select style="width: 204px;height: 31px" name="cflocal">
									<option value="1" style="font-size: 16px">本地 </option>
									<option value="2" style="font-size: 16px">异地</option>
								</select>
							</td>
							<td>年龄:</td>
							<td><input  type="text"  class="fdescriptionL1" name="fdescriptionL1" readonly="readonly" style="color: gray;"/></td>
							<td>现准驾车型号:</td>
							<td>
								<select style="width: 204px;height: 31px" name="cfxzjcxdh" class="cfxzjcxdh">
									<!-- <option value="A1" style="font-size: 16px">A1</option>
                                    <option value="A2" style="font-size: 16px">A2</option>
                                    <option value="A3" style="font-size: 16px">A3</option>
                                    <option value="B1" style="font-size: 16px">B1</option>
                                    <option value="B2" style="font-size: 16px">B2</option>
                                    <option value="C1" style="font-size: 16px">C1</option>
                                    <option value="C2" style="font-size: 16px">C2</option>
                                    <option value="C3" style="font-size: 16px">C3</option>
                                    <option value="C4" style="font-size: 16px">C4</option>
                                    <option value="D" style="font-size: 16px">D</option>
                                    <option value="E" style="font-size: 16px">E</option>
                                    <option value="F" style="font-size: 16px">F</option>
                                    <option value="M" style="font-size: 16px">M</option>
                                    <option value="N" style="font-size: 16px">N</option>
                                    <option value="P" style="font-size: 16px">P</option>
                                    <option value=" " style="font-size: 16px" selected="selected"></option> -->
									<option value=" " style="font-size: 16px" selected="selected">
										<c:forEach items="${carTypes}" var="carType">
									<option value="${carType}">${carType}</option>
									</c:forEach>
								</select>
							</td>
						</tr>
						<tr>
							<td></td>
							<td></td>
							<td></td>
							<td></td>
							<td></td>
							<td>申请准驾车型号:</td>
							<td>
								<select style="width: 204px;height: 31px" name="cfslzjcxdh" id="cfslzjcxdh">
									<!-- <option value="A1" style="font-size: 16px">A1</option>
                                    <option value="A2" style="font-size: 16px">A2</option>
                                    <option value="A3" style="font-size: 16px">A3</option>
                                    <option value="B1" style="font-size: 16px">B1</option>
                                    <option value="B2" style="font-size: 16px">B2</option>
                                    <option value="C1" style="font-size: 16px" selected="selected">C1</option>
                                    <option value="C2" style="font-size: 16px">C2</option>
                                    <option value="C3" style="font-size: 16px">C3</option>
                                    <option value="C4" style="font-size: 16px">C4</option>
                                    <option value="D" style="font-size: 16px">D</option>
                                    <option value="E" style="font-size: 16px">E</option>
                                    <option value="F" style="font-size: 16px">F</option>
                                    <option value="M" style="font-size: 16px">M</option>
                                    <option value="N" style="font-size: 16px">N</option>
                                    <option value="P" style="font-size: 16px">P</option>
                                    <option value=" " style="font-size: 16px" ></option> -->
									<c:forEach items="${carTypes}" var="carType">
										<c:choose>
											<c:when test="${carType eq 'C1' }">
												<option selected="selected" value="${carType}">${carType}</option>
											</c:when>
											<c:otherwise>
												<option value="${carType}">${carType}</option>
											</c:otherwise>
										</c:choose>
									</c:forEach>
								</select>
								<span style="font-size: 14px;padding-left: 5px;color:#FF4D64">必填</span>
							</td>
						</tr>
						<tr>
							<td>家庭地址:</td>
							<td colspan="2">
								<input id="cfaddress" type="text" name="cfaddress" value=""  style="color: gray;width:325px"/>
							</td>
							<td>是否计时收费:</td>
							<td>
								<select style="width: 204px;height: 31px" name="timingCharge">
									<option value="0">否</option>
									<option value="1">是</option>
								</select>
							</td>

							<td>班级:</td>
							<td class="clazz1">
								<input class="clazz"  type="text" value="" />
								<input  type="hidden" name="cfclazzid" value=""  />
								<span style="font-size: 14px;padding-left: 5px;color:#FF4D64">必填</span>
							</td>
						</tr>
						<tr>
							<td>联系地址:</td>
							<td colspan="2">
								<input  type="text" id="cflinkaddress" name="cflinkaddress" value=""  style="color: gray;width:325px"/>
							</td>
							<td>优惠劵:</td>
							<td>
								<input  type="text" name="cfyhj" disabled="disabled" style="color: gray;"/>
							</td>
							<td>应收金额:</td>
							<td>
								<input  class="cfamount"  type="text"  disabled="disabled" style="color: gray;"/>
								<input class="cfamount" type="hidden" value=""  name="cfamount"   />
							</td>
						</tr>
						<tr>
							<td>暂住证号:</td>
							<td colspan="2">
								<input  type="text" name="cfzzzh" value=""  style="color: gray;width:325px"/>
							</td>
							<td>邮政编码:</td>
							<td>
								<input  type="text" name="cfyzbm"  style="color: gray;"/>
							</td>
							<td>已收:</td>
							<td>
								<input  type="text" name="cfreceived" disabled="disabled"  value="0"  style="color: gray;"/>
								<input type="hidden" name="cfreceived" value="0"   >
							</td>
						</tr>
						<tr>
							<td>手机:</td>
							<td colspan="2">
								<input  type="text" class="phone" name="cfsjhm" value=""  style="color: gray;width:325px"/>
								<span style="font-size: 14px;padding-left: 5px;color:#FF4D64">必填</span>
							</td>
							<td>联系电话:</td>
							<td>
								<input  type="text" name="cflxdh"  style="color: gray;"/>
							</td>
							<td>优惠:</td>
							<td>
								<input class="cffavorable"  type="text" name="cffavorable" disabled="disabled"   style="color: gray;"/>
								<input class="cffavorable" type="hidden" name="cffavorable" value="" >
							</td>
						</tr>
						<tr>
							<td>培训计时卡:</td>
							<td colspan="2">
								<select style="width: 330px;height: 31px" name="cftimecard">
									<option value="0" style="font-size: 16px"></option>
									<option value="1" style="font-size: 16px">已发放 </option>
									<option value="2" style="font-size: 16px">未发放</option>
								</select>
							</td>
							<td>电子邮箱:</td>
							<td>
								<input  type="text" name="cfemail" value=""  style="color: gray;"/>
							</td>
							<td>欠费:</td>
							<td>
								<input  class="cfarrearage"  type="text"  disabled="disabled"  value="0"  style="color: gray;"/>
								<input class="cfarrearage" type="hidden" name="cfarrearage" value="" >
							</td>
						</tr>
						<tr>
							<td>推荐人:</td>
							<td colspan="2" class="person2">
								<input class="person" style="width:325px" type="text" value=""  />
								<input  type="hidden" class="person" name="cftjrid" value="">
								<span style="font-size: 14px;padding-left: 5px;color:#FF4D64">必填</span>
							</td>
							<td>部门:</td>
							<td>
								<input class="department"  type="text"  value="" disabled="disabled"   style="color: gray;"/>
								<input  type="hidden" class="department" name="cfdepartment" value="">
							</td>
							<td>准考证明编号:</td>
							<td>
								<input  type="text" name="cfzkzmbh"  value=""  style="color: gray;"/>
							</td>
						</tr>
						<tr class="notTr">
							<td>本校外校:</td>
							<td colspan="2">
								<select style="width: 330px;height: 31px" name="cfbxwx">
									<c:forEach items="${bigCarDatas}" var="bigCarData">
										<option value="${bigCarData.fnumber}" style="font-size: 16px">${bigCarData.carPostion}</option>
									</c:forEach>
								</select>
							</td>
							<td >
								<input  type="checkbox" name="cfjnbjj" value="" disabled="disabled"   style="color: gray;width: 15px;height: 15px"/>
								技能表已交接
							</td>
							<td>

							</td>
							<td >
								<input  type="checkbox" name="cfdajj" value="" disabled="disabled"   style="color: gray;width: 15px;height: 15px"/>
								档案已交接
							</td>
						</tr>
						<tr>
							<td>备注:</td>
							<td colspan="2">
								<textarea name="cfdesc" rows="5" cols="48"></textarea>
							</td>
							<td>预约考试备注:</td>
							<td >
								<textarea name="cftrainbespeakremark" rows="5" cols="28"></textarea>
							</td>
							<td>预约练车备注:</td>
							<td >
								<textarea name="cfexambespeakremark" rows="5" cols="28"></textarea>
							</td>
						</tr>
					</table>
					<div>
						<c:if test="${message eq 0}">
							<script type="application/javascript">
                                $.messager.alert('提示','该学员已报名C1驾照!!!','error');
							</script>
						</c:if>
						<c:if test="${message eq 1}">
							<script type="application/javascript">
                                $.messager.alert('提示','该学员正在学习C1驾照!!!','error');
							</script>
						</c:if>
					</div>
					<div class="div_tj" style="height: 100px;margin-top: 30px" >
						<div>
							<input type="submit" onclick="return checkSubmit()" value=""  class="input_submit bc" style="margin-right: 30px">
						</div>
						<div>
							<input type="button" class="input_submit fh"   />
						</div>
					</div>
				</form>
			</div>
			<div class="div_log" style="display: none;margin: 0 40px">
				<table style="border-spacing: 0px">
					<tbody>
					<tr style="background: #f2f2f2;height: 40px;">
						<td width="150px" style="padding: 0;text-align: center;">业务日期</td>
						<td>功能模块</td>
						<td style="padding: 0 30px">内容</td>
						<td style="padding: 0 30px">操作人</td>
					</tr>
					</tbody>
				</table>

			</div>
			<div class="div_test" style="display: none;margin: 0 100px">
				<table style="border-spacing: 0px">
					<tbody>
					<tr style="height: 60px;">
						<td>科目一考试次数:</td>
						<td><input disabled="disabled"  type="text" name="cfnation"  value="0"  style="color: gray;"/></td>
						<td>科目一合格日期:</td>
						<td>
							<input disabled="disabled"  type="text" id="cfbirthday" name="cfbirthdays"  onclick="WdatePicker({el:'cfbirthday',dateFmt:'yyyy-MM-dd'})" >
							<img
									src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</td>
						<td>科目一不及格日期:</td>
						<td>
							<input disabled="disabled"  type="text" id="cfbirthday" name="cfbirthdays"  onclick="WdatePicker({el:'cfbirthday',dateFmt:'yyyy-MM-dd'})" >
							<img
									src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</td>
					</tr>
					<tr style="height: 60px;">
						<td>科目二考试次数:</td>
						<td><input disabled="disabled"  type="text" name="cfnation"  value="0"  style="color: gray;"/></td>
						<td>科目二合格日期:</td>
						<td>
							<input disabled="disabled"  type="text" id="cfbirthday" name="cfbirthdays"  onclick="WdatePicker({el:'cfbirthday',dateFmt:'yyyy-MM-dd'})" >
							<img
									src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</td>
						<td>科目二不及格日期:</td>
						<td>
							<input disabled="disabled"  type="text" id="cfbirthday" name="cfbirthdays"  onclick="WdatePicker({el:'cfbirthday',dateFmt:'yyyy-MM-dd'})" >
							<img
									src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</td>
					</tr>
					<tr style="height: 60px;">
						<td>科目三考试次数:</td>
						<td><input disabled="disabled"  type="text" name="cfnation"  value="0"  style="color: gray;"/></td>
						<td>科目三合格日期:</td>
						<td>
							<input disabled="disabled"  type="text" id="cfbirthday" name="cfbirthdays"  onclick="WdatePicker({el:'cfbirthday',dateFmt:'yyyy-MM-dd'})" >
							<img
									src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</td>
						<td>科目三不及格日期:</td>
						<td>
							<input disabled="disabled"  type="text" id="cfbirthday" name="cfbirthdays"  onclick="WdatePicker({el:'cfbirthday',dateFmt:'yyyy-MM-dd'})" >
							<img
									src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</td>
					</tr>
					<tr style="height: 60px;">
						<td>模拟考次数:</td>
						<td><input disabled="disabled"  type="text" name="cfnation"  value="0"  style="color: gray;"/></td>
						<td>模拟考分数:</td>
						<td><input disabled="disabled"  type="text" name="cfnation"  value="0"  style="color: gray;"/></td>
						<td>模拟考时间:</td>
						<td>
							<input disabled="disabled" type="text" id="cfbirthday" name="cfbirthdays"  onclick="WdatePicker({el:'cfbirthday',dateFmt:'yyyy-MM-dd'})" >
							<img
									src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</td>
					</tr>
					<tr style="height: 60px;">
						<td>科目一缺考次数:</td>
						<td><input disabled="disabled" type="text" name="cfnation"  value="0"  style="color: gray;"/></td>
						<td>科目一缺考时间:</td>
						<td>
							<input disabled="disabled" type="text" id="cfbirthday" name="cfbirthdays"  onclick="WdatePicker({el:'cfbirthday',dateFmt:'yyyy-MM-dd'})" >
							<img
									src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</td>
					</tr>
					<tr style="height: 60px;">
						<td>科目二缺考次数:</td>
						<td><input disabled="disabled" type="text" name="cfnation"  value="0"  style="color: gray;"/></td>
						<td>科目二缺考时间:</td>
						<td>
							<input disabled="disabled" type="text" id="cfbirthday" name="cfbirthdays"  onclick="WdatePicker({el:'cfbirthday',dateFmt:'yyyy-MM-dd'})" >
							<img
									src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</td>
					</tr>
					<tr style="height: 60px;">
						<td>科目三缺考次数:</td>
						<td><input disabled="disabled" type="text" name="cfnation"  value="0"  style="color: gray;"/></td>
						<td>科目三缺考时间:</td>
						<td>
							<input disabled="disabled" type="text" id="cfbirthday" name="cfbirthdays"  onclick="WdatePicker({el:'cfbirthday',dateFmt:'yyyy-MM-dd'})" >
							<img
									src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</td>
					</tr>
					</tbody>
				</table>
			</div>


			<div class="div_file" style="display: none;margin: 0 100px;width: 300px">
				<table width="400px">
					<tr style="height: 60px">
						<td width="100px">手续状态:</td>
						<td width="200px"><input disabled="disabled" type="text" name="cfnation"    style="color: gray;"/></td>
					</tr>
					<tr style="height: 60px">
						<td width="100px">存放位置:</td>
						<td width="200px"><input disabled="disabled" type="text" name="cfnation"    style="color: gray;"/></td>
					</tr>
					<tr style="height: 60px">
						<td width="100px">结业证编号:</td>
						<td width="200px"><input disabled="disabled" type="text" name="cfnation"    style="color: gray;"/></td>
					</tr>
					<tr>
						<td width="100px" style="padding-top: 60px">备注:</td>
						<td width="200px"><textarea disabled="disabled" rows="5" cols="28"></textarea>   </td>
					</tr>
					<tr class="notTr" >
						<td width="100px">五次清零:</td>
						<td width="200px"><input style="width: 15px;height: 15px"  type="checkbox" disabled="disabled">  </td>
					</tr>
					<tr class="notTr">
						<td width="100px">三年清零:</td>
						<td width="200px"><input style="width: 15px;height: 15px"  type="checkbox" disabled="disabled">  </td>
					</tr>
				</table>
			</div>
			<div class="div_car" style="display: none;margin: 0 40px">
				<table style="border-spacing: 0px">
					<tbody>
					<tr style="height: 60px;">
						<td>科目二退练时间:</td>
						<td>
							<input disabled="disabled"  type="text" id="cfbirthday" name="cfbirthdays"  onclick="WdatePicker({el:'cfbirthday',dateFmt:'yyyy-MM-dd'})" >
							<img
									src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</td>
						<td>科目二退练次数:</td>
						<td><input disabled="disabled"  type="text" name="cfnation"  value="0"  style="color: gray;"/></td>
						<td>科目二退练原因:</td>
						<td><input disabled="disabled"  type="text" name="cfnation"    style="color: gray;"/></td>
					</tr>
					<tr style="height: 60px;">
						<td>科目三退练时间:</td>
						<td>
							<input disabled="disabled"  type="text" id="cfbirthday" name="cfbirthdays"  onclick="WdatePicker({el:'cfbirthday',dateFmt:'yyyy-MM-dd'})" >
							<img
									src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</td>
						<td>科目三退练次数:</td>
						<td><input disabled="disabled"  type="text" name="cfnation"  value="0"  style="color: gray;"/></td>
						<td>科目三退练原因:</td>
						<td><input disabled="disabled"  type="text" name="cfnation"    style="color: gray;"/></td>
					</tr>
					<tr style="height: 60px;">
						<td>科目二练车:</td>
						<td><input disabled="disabled"  type="text" name="cfnation"    style="color: gray;"/></td>
						<td>科目三练车:</td>
						<td>
							<input disabled="disabled"  type="text" id="cfbirthday" name="cfbirthdays"  >
						</td>
					</tr>
					</tbody>
				</table>

			</div>
		</c:if>



		<!-- 修改页面-->



		<c:if test="${flag eq 2 }">
			<div class="div_form" style="margin: 0 20px;width: auto;">
				<form action="<%=path%>/DrivingSys/updateStudent"  method="post" class="form" enctype="multipart/form-data">
					<table style="width:100%;margin-top:20px">
						<tr >
							<td rowspan="5" style="width: 100px" >
								<div id="preview">
									<img alt="" style="padding: 0 20px" width="150px" height="150px" src="<%=path%>/DrivingSys/selectStudentPhoto" >
								</div>
								<span class="fileinput-button" >
							<span >上传图片</span>
							<input name="file" type="file" onchange="previewImage(this)" value="">
							</span>

							</td>

							<td>驾校:</td>
							<td>
								<input  type="text" value="${student.cfficompanyName}"  disabled="disabled" style="color: gray;"/>
								<input type="hidden" name="cfficompanyid"  value="${student.cfficompanyid}" >
								<input type="hidden" name="fid" id="fid" value="${student.fid}" >
								<input type="hidden" name="cfshortpinyin" id="cfshortpinyin" value="${student.cfshortpinyin}" >
								<input type="hidden" name="cfpinyin"  id="cfpinyin" value="${student.cfpinyin}">
							</td>
							<td>国籍:</td>
							<td><input  type="text" name="cfnationalityid"  value="中国"  style="color: gray;"/></td>
							<td>学员状态:</td>
							<td>
								<input  type="text" name="oldState"  value="${student.cfstudentstate}"  style="display: none"/>
								<select class="cfstudentstate" style="width: 204px;height: 31px"

									<%--可以手动修改学员状态的权限--%>
										<shiro:lacksPermission name="/cgStudentState">
											disabled="disabled"
										</shiro:lacksPermission>

										name="cfstudentstate">
									<option value="1"
										${student.cfstudentstate eq '1' ? 'selected="selected"' : '' }
											style="font-size: 16px">已报名 </option>
									<option value="2"
										${student.cfstudentstate eq '2' ? 'selected="selected"' : '' }
											style="font-size: 16px">科目一通过 </option>
									<option value="3"
										${student.cfstudentstate eq '3' ? 'selected="selected"' : '' }
											style="font-size: 16px">科目一未通过 </option>
									<option value="4"
										${student.cfstudentstate eq '4' ? 'selected="selected"' : '' }
											style="font-size: 16px">科目二通过,科目三未开始 </option>
									<option value="5"
										${student.cfstudentstate eq '5' ? 'selected="selected"' : '' }
											style="font-size: 16px">科目二未通过,科目三未开始 </option>
									<option value="6"
										${student.cfstudentstate eq '6' ? 'selected="selected"' : '' }
											style="font-size: 16px">科目二练车中,科目三未开始 </option>
									<option value="7"
										${student.cfstudentstate eq '7' ? 'selected="selected"' : '' }
											style="font-size: 16px">科目三通过,科目二通过 </option>
									<option value="8"
										${student.cfstudentstate eq '8' ? 'selected="selected"' : '' }
											style="font-size: 16px">科目三未通过,科目二通过 </option>
									<option value="9"
										${student.cfstudentstate eq '9' ? 'selected="selected"' : '' }
											style="font-size: 16px">科目三练车中,科目二通过</option>
									<option value="10"
										${student.cfstudentstate eq '10' ? 'selected="selected"' : '' }
											style="font-size: 16px">已结业</option>
									<option value="11"
										${student.cfstudentstate eq '11' ? 'selected="selected"' : '' }
											style="font-size: 16px">已退学，未退款  </option>
									<option value="12"
										${student.cfstudentstate eq '12' ? 'selected="selected"' : '' }
											style="font-size: 16px">模拟考试合格</option>

									<option value="13"
										${student.cfstudentstate eq '13' ? 'selected="selected"' : '' }
											style="font-size: 16px">已过期  </option>

									<option value="14"
										${student.cfstudentstate eq '14' ? 'selected="selected"' : '' }
											style="font-size: 16px">作废</option>

									<option value="15"
										${student.cfstudentstate eq '15' ? 'selected="selected"' : '' }
											style="font-size: 16px">科目三练车中,科目二未通过</option>

									<option value="16"
										${student.cfstudentstate eq '16' ? 'selected="selected"' : '' }
											style="font-size: 16px">科目三练车中,科目二未开始  </option>

									<option value="17"
										${student.cfstudentstate eq '17' ? 'selected="selected"' : '' }
											style="font-size: 16px">科目三通过,科目二未通过</option>

									<option value="18"
										${student.cfstudentstate eq '18' ? 'selected="selected"' : '' }
											style="font-size: 16px">科目三通过,科目二练车中</option>

									<option value="19"
										${student.cfstudentstate eq '19' ? 'selected="selected"' : '' }
											style="font-size: 16px">科目三通过,科目二未开始</option>

									<option value="20"
										${student.cfstudentstate eq '20' ? 'selected="selected"' : '' }
											style="font-size: 16px">科目二未通过,科目三未通过</option>

									<option value="21"
										${student.cfstudentstate eq '21' ? 'selected="selected"' : '' }
											style="font-size: 16px">科目三练车中,科目二通过</option>

									<option value="22"
										${student.cfstudentstate eq '22' ? 'selected="selected"' : '' }
											style="font-size: 16px">科目二练车中,科目三未通过</option>
									<option value="23"
										${student.cfstudentstate eq '23' ? 'selected="selected"' : '' }
											style="font-size: 16px">已退学,已退款</option>
								</select>
								<input type="hidden" value="1" name="isChangeStudent">
							</td>
						</tr>
						<tr>
							<td>学员编码:</td>
							<td>
								<input  type="text"  value="${student.fnumber}"   disabled="disabled" style="color: gray;"/>
								<input  type="hidden" name="fnumber" value="${student.fnumber}"  style="color: gray;"/>
							</td>
							<td>身份证号码:</td>
							<td><input  type="text" name="cfidcardno"  value="${student.cfidcardno}" id="cfidcardno" style="color: gray;"/></td>
							<td>入学日期:</td>
							<td>
								<c:choose>
									<c:when test="${student.cfarrearage > 0}">
								<input type="text" id="cfrxsj" name="cfrxsj" value="${student.cfrxsj}"  onclick="WdatePicker({el:'cfrxsj',dateFmt:'yyyy-MM-dd'})" >
								<img onclick="WdatePicker({el:'cfrxsj',dateFmt:'yyyy-MM-dd '})"
									 src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
									</c:when>
									<c:otherwise>
								<input type="text" id="cfrxsj" disabled="disabled" name="cfrxsj" value="${student.cfrxsj}"  onclick="WdatePicker({el:'cfrxsj',dateFmt:'yyyy-MM-dd'})" >
								<img onclick="WdatePicker({el:'cfrxsj',dateFmt:'yyyy-MM-dd '})"
									 src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
									</c:otherwise>
								</c:choose>
							</td>
						</tr>
						<tr>
							<td>姓名:</td>
							<td><input  type="text" name="fnameL2" id="fnameL2" value="${student.fnameL2}"   style="color: gray;"/></td>
							<td>民族:</td>
							<td><input  type="text" name="cfnation"  value="${student.cfnation}"  style="color: gray;"/></td>
							<td>培训类型:</td>
							<td class="trainType">
									<%-- <select style="width: 204px;height: 31px" name="cfssjgid">
                                        <option value="0"></option>
                                      <c:forEach items="${trainTypes}" var="trainType">
                                        <option value="${trainType.fid}">${trainType.fnameL2}</option>
                                      </c:forEach>
                                    </select> --%>
								<input type="text" value="${student.cftrainTypeNAME}" />
								<input type="hidden" name="cftraintypeid"  value="${student.cftraintypeid}" >
							</td>
						</tr>
						<tr>
							<td>性别:</td>
							<td>
								<select style="width: 204px;height: 31px" name="cfsex">
									<c:if test="${student.cfsex eq 1}">
										<option selected="selected" value="1" style="font-size: 16px">男 </option>
										<option value="2" style="font-size: 16px">女</option>
									</c:if>
									<c:if test="${student.cfsex eq 2}">
										<option  value="1" style="font-size: 16px">男 </option>
										<option selected="selected" value="2" style="font-size: 16px">女</option>
									</c:if>
								</select>
							</td>
							<td>出生日期:</td>
							<td>
								<input type="text" id="cfbirthday" name="cfbirthdays" disabled="disabled" value="${student.cfbirthdays}"  onclick="WdatePicker({el:'cfbirthday',dateFmt:'yyyy-MM-dd'})" >
								<img onclick="WdatePicker({el:'cfbirthday',dateFmt:'yyyy-MM-dd'})"
									 src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
							</td>
							<td>申领类型:</td>
							<td>
								<select style="width: 204px;height: 31px" name="cfsllx" class="cfsllx">
									<c:if test="${student.cfsllx eq 1}">
										<option selected="selected" value="1" style="font-size: 16px">初次申领</option>
										<option value="2" style="font-size: 16px">增加准驾车型</option>
										<option value="3" style="font-size: 16px">持军官驾驶证 </option>
										<option value="4" style="font-size: 16px">持境外驾驶证</option>
									</c:if>
									<c:if test="${student.cfsllx eq 2}">
										<option value="1" style="font-size: 16px">初次申领</option>
										<option selected="selected" value="2" style="font-size: 16px">增加准驾车型</option>
										<option value="3" style="font-size: 16px">持军官驾驶证 </option>
										<option value="4" style="font-size: 16px">持境外驾驶证</option>
									</c:if>
									<c:if test="${student.cfsllx eq 3}">
										<option value="1" style="font-size: 16px">初次申领</option>
										<option value="2" style="font-size: 16px">增加准驾车型</option>
										<option selected="selected" value="3" style="font-size: 16px">持军官驾驶证 </option>
										<option value="4" style="font-size: 16px">持境外驾驶证</option>
									</c:if>
									<c:if test="${student.cfsllx eq 4}">
										<option value="1" style="font-size: 16px">初次申领</option>
										<option value="2" style="font-size: 16px">增加准驾车型</option>
										<option value="3" style="font-size: 16px">持军官驾驶证 </option>
										<option  selected="selected" value="4" style="font-size: 16px">持境外驾驶证</option>
									</c:if>
									<c:if test="${empty student.cfsllx }">
										<option value="1" style="font-size: 16px">初次申领</option>
										<option value="2" style="font-size: 16px">增加准驾车型</option>
										<option value="3" style="font-size: 16px">持军官驾驶证 </option>
										<option value="4" style="font-size: 16px">持境外驾驶证</option>
									</c:if>
								</select>
							</td>
						</tr>
						<tr>
							<td>本地/异地:</td>
							<td>
								<select style="width: 204px;height: 31px" name="cflocal">
									<c:if test = "${student.cflocal eq 1}">
										<option selected="selected" value="1" style="font-size: 16px">本地 </option>
										<option value="2" style="font-size: 16px">异地</option>
									</c:if>
									<c:if test = "${student.cflocal eq 2}">
										<option  value="1" style="font-size: 16px">本地 </option>
										<option selected="selected" value="2" style="font-size: 16px">异地</option>
									</c:if>
								</select>
							</td>
							<td>年龄:</td>
							<td><input  type="text"  value="${student.fdescriptionL1}" disabled="disabled" style="color: gray;"/></td>
							<td>现准驾车型号:</td>
							<td>
								<select style="width: 204px;height: 31px" name="cfxzjcxdh">
										<%-- 	<c:if test="${student.cfslzjcxdh eq A1}">
                                                <option selected="selected" value="A1" style="font-size: 16px">A1</option>
                                                 <option value="A2" style="font-size: 16px">A2</option>
                                                 <option value="A3" style="font-size: 16px">A3</option>
                                                 <option value="B1" style="font-size: 16px">B1</option>
                                                 <option value="B2" style="font-size: 16px">B2</option>
                                                 <option value="C1" style="font-size: 16px">C1</option>
                                                 <option value="C2" style="font-size: 16px">C2</option>
                                                 <option value="C3" style="font-size: 16px">C3</option>
                                                 <option value="C4" style="font-size: 16px">C4</option>
                                                 <option value="D" style="font-size: 16px">D</option>
                                                 <option value="E" style="font-size: 16px">E</option>
                                                 <option value="F" style="font-size: 16px">F</option>
                                                 <option value="M" style="font-size: 16px">M</option>
                                                 <option value="N" style="font-size: 16px">N</option>
                                                 <option value="P" style="font-size: 16px">P</option>
                                                 <option value=" " style="font-size: 16px"></option>
                                            </c:if>
                                            <c:if test="${student.cfslzjcxdh eq A2}">
                                                <option value="A1" style="font-size: 16px">A1</option>
                                                 <option selected="selected" value="A2" style="font-size: 16px">A2</option>
                                                 <option value="A3" style="font-size: 16px">A3</option>
                                                 <option value="B1" style="font-size: 16px">B1</option>
                                                 <option value="B2" style="font-size: 16px">B2</option>
                                                 <option value="C1" style="font-size: 16px">C1</option>
                                                 <option value="C2" style="font-size: 16px">C2</option>
                                                 <option value="C3" style="font-size: 16px">C3</option>
                                                 <option value="C4" style="font-size: 16px">C4</option>
                                                 <option value="D" style="font-size: 16px">D</option>
                                                 <option value="E" style="font-size: 16px">E</option>
                                                 <option value="F" style="font-size: 16px">F</option>
                                                 <option value="M" style="font-size: 16px">M</option>
                                                 <option value="N" style="font-size: 16px">N</option>
                                                 <option value="P" style="font-size: 16px">P</option>
                                                 <option value=" " style="font-size: 16px" ></option>
                                            </c:if>
                                            <c:if test="${student.cfslzjcxdh == A3}">
                                                <option value="A1" style="font-size: 16px">A1</option>
                                                 <option value="A2" style="font-size: 16px">A2</option>
                                                 <option  selected="selected"  value="A3" style="font-size: 16px">A3</option>
                                                 <option value="B1" style="font-size: 16px">B1</option>
                                                 <option value="B2" style="font-size: 16px">B2</option>
                                                 <option value="C1" style="font-size: 16px">C1</option>
                                                 <option value="C2" style="font-size: 16px">C2</option>
                                                 <option value="C3" style="font-size: 16px">C3</option>
                                                 <option value="C4" style="font-size: 16px">C4</option>
                                                 <option value="D" style="font-size: 16px">D</option>
                                                 <option value="E" style="font-size: 16px">E</option>
                                                 <option value="F" style="font-size: 16px">F</option>
                                                 <option value="M" style="font-size: 16px">M</option>
                                                 <option value="N" style="font-size: 16px">N</option>
                                                 <option value="P" style="font-size: 16px">P</option>
                                                 <option value=" " style="font-size: 16px" ></option>
                                            </c:if>
                                            <c:if test="${student.cfslzjcxdh == B1}">
                                                <option value="A1" style="font-size: 16px">A1</option>
                                                 <option value="A2" style="font-size: 16px">A2</option>
                                                 <option value="A3" style="font-size: 16px">A3</option>
                                                 <option selected="selected" value="B1" style="font-size: 16px">B1</option>
                                                 <option value="B2" style="font-size: 16px">B2</option>
                                                 <option value="C1" style="font-size: 16px">C1</option>
                                                 <option value="C2" style="font-size: 16px">C2</option>
                                                 <option value="C3" style="font-size: 16px">C3</option>
                                                 <option value="C4" style="font-size: 16px">C4</option>
                                                 <option value="D" style="font-size: 16px">D</option>
                                                 <option value="E" style="font-size: 16px">E</option>
                                                 <option value="F" style="font-size: 16px">F</option>
                                                 <option value="M" style="font-size: 16px">M</option>
                                                 <option value="N" style="font-size: 16px">N</option>
                                                 <option value="P" style="font-size: 16px">P</option>
                                                 <option value=" " style="font-size: 16px"></option>
                                            </c:if>
                                            <c:if test="${student.cfslzjcxdh == B2}">
                                                <option value="A1" style="font-size: 16px">A1</option>
                                                 <option value="A2" style="font-size: 16px">A2</option>
                                                 <option value="A3" style="font-size: 16px">A3</option>
                                                 <option value="B1" style="font-size: 16px">B1</option>
                                                 <option selected="selected" value="B2" style="font-size: 16px">B2</option>
                                                 <option value="C1" style="font-size: 16px">C1</option>
                                                 <option value="C2" style="font-size: 16px">C2</option>
                                                 <option value="C3" style="font-size: 16px">C3</option>
                                                 <option value="C4" style="font-size: 16px">C4</option>
                                                 <option value="D" style="font-size: 16px">D</option>
                                                 <option value="E" style="font-size: 16px">E</option>
                                                 <option value="F" style="font-size: 16px">F</option>
                                                 <option value="M" style="font-size: 16px">M</option>
                                                 <option value="N" style="font-size: 16px">N</option>
                                                 <option value="P" style="font-size: 16px">P</option>
                                                 <option value=" " style="font-size: 16px"></option>
                                            </c:if>
                                            <c:if test="${student.cfslzjcxdh == C1}">
                                                <option value="A1" style="font-size: 16px">A1</option>
                                                 <option value="A2" style="font-size: 16px">A2</option>
                                                 <option value="A3" style="font-size: 16px">A3</option>
                                                 <option value="B1" style="font-size: 16px">B1</option>
                                                 <option value="B2" style="font-size: 16px">B2</option>
                                                 <option selected="selected" value="C1" style="font-size: 16px">C1</option>
                                                 <option value="C2" style="font-size: 16px">C2</option>
                                                 <option value="C3" style="font-size: 16px">C3</option>
                                                 <option value="C4" style="font-size: 16px">C4</option>
                                                 <option value="D" style="font-size: 16px">D</option>
                                                 <option value="E" style="font-size: 16px">E</option>
                                                 <option value="F" style="font-size: 16px">F</option>
                                                 <option value="M" style="font-size: 16px">M</option>
                                                 <option value="N" style="font-size: 16px">N</option>
                                                 <option value="P" style="font-size: 16px">P</option>
                                                 <option value=" " style="font-size: 16px"></option>
                                            </c:if>
                                            <c:if test="${student.cfslzjcxdh == C2}">
                                                <option value="A1" style="font-size: 16px">A1</option>
                                                 <option value="A2" style="font-size: 16px">A2</option>
                                                 <option value="A3" style="font-size: 16px">A3</option>
                                                 <option value="B1" style="font-size: 16px">B1</option>
                                                 <option value="B2" style="font-size: 16px">B2</option>
                                                 <option value="C1" style="font-size: 16px">C1</option>
                                                 <option selected="selected" value="C2" style="font-size: 16px">C2</option>
                                                 <option value="C3" style="font-size: 16px">C3</option>
                                                 <option value="C4" style="font-size: 16px">C4</option>
                                                 <option value="D" style="font-size: 16px">D</option>
                                                 <option value="E" style="font-size: 16px">E</option>
                                                 <option value="F" style="font-size: 16px">F</option>
                                                 <option value="M" style="font-size: 16px">M</option>
                                                 <option value="N" style="font-size: 16px">N</option>
                                                 <option value="P" style="font-size: 16px">P</option>
                                                 <option value=" " style="font-size: 16px"></option>
                                            </c:if>
                                            <c:if test="${student.cfslzjcxdh == C3}">
                                                <option value="A1" style="font-size: 16px">A1</option>
                                                 <option value="A2" style="font-size: 16px">A2</option>
                                                 <option value="A3" style="font-size: 16px">A3</option>
                                                 <option value="B1" style="font-size: 16px">B1</option>
                                                 <option value="B2" style="font-size: 16px">B2</option>
                                                 <option value="C1" style="font-size: 16px">C1</option>
                                                 <option value="C2" style="font-size: 16px">C2</option>
                                                 <option selected="selected" value="C3" style="font-size: 16px">C3</option>
                                                 <option value="C4" style="font-size: 16px">C4</option>
                                                 <option value="D" style="font-size: 16px">D</option>
                                                 <option value="E" style="font-size: 16px">E</option>
                                                 <option value="F" style="font-size: 16px">F</option>
                                                 <option value="M" style="font-size: 16px">M</option>
                                                 <option value="N" style="font-size: 16px">N</option>
                                                 <option value="P" style="font-size: 16px">P</option>
                                                 <option value=" " style="font-size: 16px"></option>
                                            </c:if>
                                            <c:if test="${student.cfslzjcxdh == C4}">
                                                <option value="A1" style="font-size: 16px">A1</option>
                                                 <option value="A2" style="font-size: 16px">A2</option>
                                                 <option value="A3" style="font-size: 16px">A3</option>
                                                 <option value="B1" style="font-size: 16px">B1</option>
                                                 <option value="B2" style="font-size: 16px">B2</option>
                                                 <option value="C1" style="font-size: 16px">C1</option>
                                                 <option value="C2" style="font-size: 16px">C2</option>
                                                 <option value="C3" style="font-size: 16px">C3</option>
                                                 <option selected="selected" value="C4" style="font-size: 16px">C4</option>
                                                 <option value="D" style="font-size: 16px">D</option>
                                                 <option value="E" style="font-size: 16px">E</option>
                                                 <option value="F" style="font-size: 16px">F</option>
                                                 <option value="M" style="font-size: 16px">M</option>
                                                 <option value="N" style="font-size: 16px">N</option>
                                                 <option value="P" style="font-size: 16px">P</option>
                                                 <option value=" " style="font-size: 16px"></option>
                                            </c:if>
                                            <c:if test="${student.cfslzjcxdh == D}">
                                                <option value="A1" style="font-size: 16px">A1</option>
                                                 <option value="A2" style="font-size: 16px">A2</option>
                                                 <option value="A3" style="font-size: 16px">A3</option>
                                                 <option value="B1" style="font-size: 16px">B1</option>
                                                 <option value="B2" style="font-size: 16px">B2</option>
                                                 <option value="C1" style="font-size: 16px">C1</option>
                                                 <option value="C2" style="font-size: 16px">C2</option>
                                                 <option value="C3" style="font-size: 16px">C3</option>
                                                 <option value="C4" style="font-size: 16px">C4</option>
                                                 <option selected="selected" value="D" style="font-size: 16px">D</option>
                                                 <option value="E" style="font-size: 16px">E</option>
                                                 <option value="F" style="font-size: 16px">F</option>
                                                 <option value="M" style="font-size: 16px">M</option>
                                                 <option value="N" style="font-size: 16px">N</option>
                                                 <option value="P" style="font-size: 16px">P</option>
                                                 <option value=" " style="font-size: 16px"></option>
                                            </c:if>
                                            <c:if test="${student.cfslzjcxdh == E}">
                                                <option value="A1" style="font-size: 16px">A1</option>
                                                 <option value="A2" style="font-size: 16px">A2</option>
                                                 <option value="A3" style="font-size: 16px">A3</option>
                                                 <option value="B1" style="font-size: 16px">B1</option>
                                                 <option value="B2" style="font-size: 16px">B2</option>
                                                 <option value="C1" style="font-size: 16px">C1</option>
                                                 <option value="C2" style="font-size: 16px">C2</option>
                                                 <option value="C3" style="font-size: 16px">C3</option>
                                                 <option value="C4" style="font-size: 16px">C4</option>
                                                 <option value="D" style="font-size: 16px">D</option>
                                                 <option selected="selected" value="E" style="font-size: 16px">E</option>
                                                 <option value="F" style="font-size: 16px">F</option>
                                                 <option value="M" style="font-size: 16px">M</option>
                                                 <option value="N" style="font-size: 16px">N</option>
                                                 <option value="P" style="font-size: 16px">P</option>
                                                 <option value=" " style="font-size: 16px"></option>
                                            </c:if>
                                            <c:if test="${student.cfslzjcxdh eq F}">
                                                <option value="A1" style="font-size: 16px">A1</option>
                                                 <option value="A2" style="font-size: 16px">A2</option>
                                                 <option value="A3" style="font-size: 16px">A3</option>
                                                 <option value="B1" style="font-size: 16px">B1</option>
                                                 <option value="B2" style="font-size: 16px">B2</option>
                                                 <option value="C1" style="font-size: 16px">C1</option>
                                                 <option value="C2" style="font-size: 16px">C2</option>
                                                 <option value="C3" style="font-size: 16px">C3</option>
                                                 <option value="C4" style="font-size: 16px">C4</option>
                                                 <option value="D" style="font-size: 16px">D</option>
                                                 <option value="E" style="font-size: 16px">E</option>
                                                 <option selected="selected"  value="F" style="font-size: 16px">F</option>
                                                 <option value="M" style="font-size: 16px">M</option>
                                                 <option value="N" style="font-size: 16px">N</option>
                                                 <option value="P" style="font-size: 16px">P</option>
                                                 <option value=" " style="font-size: 16px"></option>
                                            </c:if>
                                            <c:if test="${student.cfslzjcxdh eq M}">
                                                <option value="A1" style="font-size: 16px">A1</option>
                                                 <option value="A2" style="font-size: 16px">A2</option>
                                                 <option value="A3" style="font-size: 16px">A3</option>
                                                 <option value="B1" style="font-size: 16px">B1</option>
                                                 <option value="B2" style="font-size: 16px">B2</option>
                                                 <option value="C1" style="font-size: 16px">C1</option>
                                                 <option value="C2" style="font-size: 16px">C2</option>
                                                 <option value="C3" style="font-size: 16px">C3</option>
                                                 <option value="C4" style="font-size: 16px">C4</option>
                                                 <option value="D" style="font-size: 16px">D</option>
                                                 <option value="E" style="font-size: 16px">E</option>
                                                 <option value="F" style="font-size: 16px">F</option>
                                                 <option selected="selected" value="M" style="font-size: 16px">M</option>
                                                 <option value="N" style="font-size: 16px">N</option>
                                                 <option value="P" style="font-size: 16px">P</option>
                                                 <option value=" " style="font-size: 16px"></option>
                                            </c:if>
                                            <c:if test="${student.cfslzjcxdh eq N}">
                                                <option value="A1" style="font-size: 16px">A1</option>
                                                 <option value="A2" style="font-size: 16px">A2</option>
                                                 <option value="A3" style="font-size: 16px">A3</option>
                                                 <option value="B1" style="font-size: 16px">B1</option>
                                                 <option value="B2" style="font-size: 16px">B2</option>
                                                 <option value="C1" style="font-size: 16px">C1</option>
                                                 <option value="C2" style="font-size: 16px">C2</option>
                                                 <option value="C3" style="font-size: 16px">C3</option>
                                                 <option value="C4" style="font-size: 16px">C4</option>
                                                 <option value="D" style="font-size: 16px">D</option>
                                                 <option value="E" style="font-size: 16px">E</option>
                                                 <option value="F" style="font-size: 16px">F</option>
                                                 <option value="M" style="font-size: 16px">M</option>
                                                 <option selected="selected" value="N" style="font-size: 16px">N</option>
                                                 <option value="P" style="font-size: 16px">P</option>
                                                 <option value=" " style="font-size: 16px"></option>
                                            </c:if>
                                            <c:if test="${student.cfslzjcxdh == P}">
                                                <option value="A1" style="font-size: 16px">A1</option>
                                                 <option value="A2" style="font-size: 16px">A2</option>
                                                 <option value="A3" style="font-size: 16px">A3</option>
                                                 <option value="B1" style="font-size: 16px">B1</option>
                                                 <option value="B2" style="font-size: 16px">B2</option>
                                                 <option value="C1" style="font-size: 16px">C1</option>
                                                 <option value="C2" style="font-size: 16px">C2</option>
                                                 <option value="C3" style="font-size: 16px">C3</option>
                                                 <option value="C4" style="font-size: 16px">C4</option>
                                                 <option value="D" style="font-size: 16px">D</option>
                                                 <option value="E" style="font-size: 16px">E</option>
                                                 <option value="F" style="font-size: 16px">F</option>
                                                 <option value="M" style="font-size: 16px">M</option>
                                                 <option value="N" style="font-size: 16px">N</option>
                                                 <option selected="selected" value="P" style="font-size: 16px">P</option>
                                                 <option value=" " style="font-size: 16px"></option>
                                            </c:if>
                                            <c:if test="${student.cfslzjcxdh =='' || student.cfslzjcxdh ==null }">
                                                <option value="A1" style="font-size: 16px">A1</option>
                                                 <option value="A2" style="font-size: 16px">A2</option>
                                                 <option value="A3" style="font-size: 16px">A3</option>
                                                 <option value="B1" style="font-size: 16px">B1</option>
                                                 <option value="B2" style="font-size: 16px">B2</option>
                                                 <option value="C1" style="font-size: 16px">C1</option>
                                                 <option value="C2" style="font-size: 16px">C2</option>
                                                 <option value="C3" style="font-size: 16px">C3</option>
                                                 <option value="C4" style="font-size: 16px">C4</option>
                                                 <option value="D" style="font-size: 16px">D</option>
                                                 <option value="E" style="font-size: 16px">E</option>
                                                 <option value="F" style="font-size: 16px">F</option>
                                                 <option value="M" style="font-size: 16px">M</option>
                                                 <option value="N" style="font-size: 16px">N</option>
                                                 <option value="P" style="font-size: 16px">P</option>
                                                 <option selected="selected"  value=" " style="font-size: 16px"></option>
                                                </c:if> --%>
									<!-- <option value="A1" style="font-size: 16px">A1</option>
								 	<option value="A2" style="font-size: 16px">A2</option>
								 	<option value="A3" style="font-size: 16px">A3</option>
								 	<option value="B1" style="font-size: 16px">B1</option>
								 	<option value="B2" style="font-size: 16px">B2</option>
								 	<option value="C1" style="font-size: 16px">C1</option>
								 	<option value="C2" style="font-size: 16px">C2</option>
								 	<option value="C3" style="font-size: 16px">C3</option>
								 	<option value="C4" style="font-size: 16px">C4</option>
								 	<option value="D" style="font-size: 16px">D</option>
								 	<option value="E" style="font-size: 16px">E</option>
								 	<option value="F" style="font-size: 16px">F</option>
								 	<option value="M" style="font-size: 16px">M</option>
								 	<option value="N" style="font-size: 16px">N</option>
								 	<option value="P" style="font-size: 16px">P</option>
								 	<option selected="selected"  value=" " style="font-size: 16px"></option> -->

									<c:forEach items="${carTypes}" var="carType">
										<c:choose>
											<c:when test="${student.cfxzjcxdh eq carType}">
												<option selected="selected" value="${carType}">${carType}</option>
											</c:when>
											<c:otherwise>
												<option value="${carType}">${carType}</option>
											</c:otherwise>
										</c:choose>
									</c:forEach>

								</select>
							</td>
						</tr>
						<tr>
							<td></td>
							<td></td>
							<td></td>
							<td></td>
							<td></td>
							<td>申请准驾车型号:</td>
							<td>
								<select style="width: 204px;height: 31px" id="cfslzjcxdh" name="cfslzjcxdh">
									<c:forEach items="${carTypes}" var="carType">
										<c:choose>
											<c:when test="${student.cfslzjcxdh eq carType}">
												<option selected="selected" value="${carType}">${carType}</option>
											</c:when>
											<c:otherwise>
												<option value="${carType}">${carType}</option>
											</c:otherwise>
										</c:choose>
									</c:forEach>
										<%-- <c:if test="${student.cfslzjcxdh == 'A1'}">
                                           <option selected="selected" value="A1" style="font-size: 16px">A1</option>
                                            <option value="A2" style="font-size: 16px">A2</option>
                                            <option value="A3" style="font-size: 16px">A3</option>
                                            <option value="B1" style="font-size: 16px">B1</option>
                                            <option value="B2" style="font-size: 16px">B2</option>
                                            <option value="C1" style="font-size: 16px">C1</option>
                                            <option value="C2" style="font-size: 16px">C2</option>
                                            <option value="C3" style="font-size: 16px">C3</option>
                                            <option value="C4" style="font-size: 16px">C4</option>
                                            <option value="D" style="font-size: 16px">D</option>
                                            <option value="E" style="font-size: 16px">E</option>
                                            <option value="F" style="font-size: 16px">F</option>
                                            <option value="M" style="font-size: 16px">M</option>
                                            <option value="N" style="font-size: 16px">N</option>
                                            <option value="P" style="font-size: 16px">P</option>
                                            <option value=" " style="font-size: 16px"></option>
                                       </c:if>
                                       <c:if test="${student.cfslzjcxdh == 'A2'}">
                                           <option value="A1" style="font-size: 16px">A1</option>
                                            <option selected="selected" value="A2" style="font-size: 16px">A2</option>
                                            <option value="A3" style="font-size: 16px">A3</option>
                                            <option value="B1" style="font-size: 16px">B1</option>
                                            <option value="B2" style="font-size: 16px">B2</option>
                                            <option value="C1" style="font-size: 16px">C1</option>
                                            <option value="C2" style="font-size: 16px">C2</option>
                                            <option value="C3" style="font-size: 16px">C3</option>
                                            <option value="C4" style="font-size: 16px">C4</option>
                                            <option value="D" style="font-size: 16px">D</option>
                                            <option value="E" style="font-size: 16px">E</option>
                                            <option value="F" style="font-size: 16px">F</option>
                                            <option value="M" style="font-size: 16px">M</option>
                                            <option value="N" style="font-size: 16px">N</option>
                                            <option value="P" style="font-size: 16px">P</option>
                                            <option value=" " style="font-size: 16px" ></option>
                                       </c:if>
                                       <c:if test="${student.cfslzjcxdh == 'A3'}">
                                           <option value="A1" style="font-size: 16px">A1</option>
                                            <option value="A2" style="font-size: 16px">A2</option>
                                            <option  selected="selected"  value="A3" style="font-size: 16px">A3</option>
                                            <option value="B1" style="font-size: 16px">B1</option>
                                            <option value="B2" style="font-size: 16px">B2</option>
                                            <option value="C1" style="font-size: 16px">C1</option>
                                            <option value="C2" style="font-size: 16px">C2</option>
                                            <option value="C3" style="font-size: 16px">C3</option>
                                            <option value="C4" style="font-size: 16px">C4</option>
                                            <option value="D" style="font-size: 16px">D</option>
                                            <option value="E" style="font-size: 16px">E</option>
                                            <option value="F" style="font-size: 16px">F</option>
                                            <option value="M" style="font-size: 16px">M</option>
                                            <option value="N" style="font-size: 16px">N</option>
                                            <option value="P" style="font-size: 16px">P</option>
                                            <option value=" " style="font-size: 16px" ></option>
                                       </c:if>
                                       <c:if test="${student.cfslzjcxdh == 'B1'}">
                                           <option value="A1" style="font-size: 16px">A1</option>
                                            <option value="A2" style="font-size: 16px">A2</option>
                                            <option value="A3" style="font-size: 16px">A3</option>
                                            <option selected="selected" value="B1" style="font-size: 16px">B1</option>
                                            <option value="B2" style="font-size: 16px">B2</option>
                                            <option value="C1" style="font-size: 16px">C1</option>
                                            <option value="C2" style="font-size: 16px">C2</option>
                                            <option value="C3" style="font-size: 16px">C3</option>
                                            <option value="C4" style="font-size: 16px">C4</option>
                                            <option value="D" style="font-size: 16px">D</option>
                                            <option value="E" style="font-size: 16px">E</option>
                                            <option value="F" style="font-size: 16px">F</option>
                                            <option value="M" style="font-size: 16px">M</option>
                                            <option value="N" style="font-size: 16px">N</option>
                                            <option value="P" style="font-size: 16px">P</option>
                                            <option value=" " style="font-size: 16px"></option>
                                       </c:if>
                                       <c:if test="${student.cfslzjcxdh == 'B2'}">
                                           <option value="A1" style="font-size: 16px">A1</option>
                                            <option value="A2" style="font-size: 16px">A2</option>
                                            <option value="A3" style="font-size: 16px">A3</option>
                                            <option value="B1" style="font-size: 16px">B1</option>
                                            <option selected="selected" value="B2" style="font-size: 16px">B2</option>
                                            <option value="C1" style="font-size: 16px">C1</option>
                                            <option value="C2" style="font-size: 16px">C2</option>
                                            <option value="C3" style="font-size: 16px">C3</option>
                                            <option value="C4" style="font-size: 16px">C4</option>
                                            <option value="D" style="font-size: 16px">D</option>
                                            <option value="E" style="font-size: 16px">E</option>
                                            <option value="F" style="font-size: 16px">F</option>
                                            <option value="M" style="font-size: 16px">M</option>
                                            <option value="N" style="font-size: 16px">N</option>
                                            <option value="P" style="font-size: 16px">P</option>
                                            <option value=" " style="font-size: 16px"></option>
                                       </c:if>
                                       <c:if test="${student.cfslzjcxdh == 'C1'}">
                                           <option value="A1" style="font-size: 16px">A1</option>
                                            <option value="A2" style="font-size: 16px">A2</option>
                                            <option value="A3" style="font-size: 16px">A3</option>
                                            <option value="B1" style="font-size: 16px">B1</option>
                                            <option value="B2" style="font-size: 16px">B2</option>
                                            <option selected="selected" value="C1" style="font-size: 16px">C1</option>
                                            <option value="C2" style="font-size: 16px">C2</option>
                                            <option value="C3" style="font-size: 16px">C3</option>
                                            <option value="C4" style="font-size: 16px">C4</option>
                                            <option value="D" style="font-size: 16px">D</option>
                                            <option value="E" style="font-size: 16px">E</option>
                                            <option value="F" style="font-size: 16px">F</option>
                                            <option value="M" style="font-size: 16px">M</option>
                                            <option value="N" style="font-size: 16px">N</option>
                                            <option value="P" style="font-size: 16px">P</option>
                                            <option value=" " style="font-size: 16px"></option>
                                       </c:if>
                                       <c:if test="${student.cfslzjcxdh == 'C2'}">
                                           <option value="A1" style="font-size: 16px">A1</option>
                                            <option value="A2" style="font-size: 16px">A2</option>
                                            <option value="A3" style="font-size: 16px">A3</option>
                                            <option value="B1" style="font-size: 16px">B1</option>
                                            <option value="B2" style="font-size: 16px">B2</option>
                                            <option value="C1" style="font-size: 16px">C1</option>
                                            <option selected="selected" value="C2" style="font-size: 16px">C2</option>
                                            <option value="C3" style="font-size: 16px">C3</option>
                                            <option value="C4" style="font-size: 16px">C4</option>
                                            <option value="D" style="font-size: 16px">D</option>
                                            <option value="E" style="font-size: 16px">E</option>
                                            <option value="F" style="font-size: 16px">F</option>
                                            <option value="M" style="font-size: 16px">M</option>
                                            <option value="N" style="font-size: 16px">N</option>
                                            <option value="P" style="font-size: 16px">P</option>
                                            <option value=" " style="font-size: 16px"></option>
                                       </c:if>
                                       <c:if test="${student.cfslzjcxdh == 'C3'}">
                                           <option value="A1" style="font-size: 16px">A1</option>
                                            <option value="A2" style="font-size: 16px">A2</option>
                                            <option value="A3" style="font-size: 16px">A3</option>
                                            <option value="B1" style="font-size: 16px">B1</option>
                                            <option value="B2" style="font-size: 16px">B2</option>
                                            <option value="C1" style="font-size: 16px">C1</option>
                                            <option value="C2" style="font-size: 16px">C2</option>
                                            <option selected="selected" value="C3" style="font-size: 16px">C3</option>
                                            <option value="C4" style="font-size: 16px">C4</option>
                                            <option value="D" style="font-size: 16px">D</option>
                                            <option value="E" style="font-size: 16px">E</option>
                                            <option value="F" style="font-size: 16px">F</option>
                                            <option value="M" style="font-size: 16px">M</option>
                                            <option value="N" style="font-size: 16px">N</option>
                                            <option value="P" style="font-size: 16px">P</option>
                                            <option value=" " style="font-size: 16px"></option>
                                       </c:if>
                                       <c:if test="${student.cfslzjcxdh == 'C4'}">
                                           <option value="A1" style="font-size: 16px">A1</option>
                                            <option value="A2" style="font-size: 16px">A2</option>
                                            <option value="A3" style="font-size: 16px">A3</option>
                                            <option value="B1" style="font-size: 16px">B1</option>
                                            <option value="B2" style="font-size: 16px">B2</option>
                                            <option value="C1" style="font-size: 16px">C1</option>
                                            <option value="C2" style="font-size: 16px">C2</option>
                                            <option value="C3" style="font-size: 16px">C3</option>
                                            <option selected="selected" value="C4" style="font-size: 16px">C4</option>
                                            <option value="D" style="font-size: 16px">D</option>
                                            <option value="E" style="font-size: 16px">E</option>
                                            <option value="F" style="font-size: 16px">F</option>
                                            <option value="M" style="font-size: 16px">M</option>
                                            <option value="N" style="font-size: 16px">N</option>
                                            <option value="P" style="font-size: 16px">P</option>
                                            <option value=" " style="font-size: 16px"></option>
                                       </c:if>
                                       <c:if test="${student.cfslzjcxdh == 'D'}">
                                           <option value="A1" style="font-size: 16px">A1</option>
                                            <option value="A2" style="font-size: 16px">A2</option>
                                            <option value="A3" style="font-size: 16px">A3</option>
                                            <option value="B1" style="font-size: 16px">B1</option>
                                            <option value="B2" style="font-size: 16px">B2</option>
                                            <option value="C1" style="font-size: 16px">C1</option>
                                            <option value="C2" style="font-size: 16px">C2</option>
                                            <option value="C3" style="font-size: 16px">C3</option>
                                            <option value="C4" style="font-size: 16px">C4</option>
                                            <option selected="selected" value="D" style="font-size: 16px">D</option>
                                            <option value="E" style="font-size: 16px">E</option>
                                            <option value="F" style="font-size: 16px">F</option>
                                            <option value="M" style="font-size: 16px">M</option>
                                            <option value="N" style="font-size: 16px">N</option>
                                            <option value="P" style="font-size: 16px">P</option>
                                            <option value=" " style="font-size: 16px"></option>
                                       </c:if>
                                       <c:if test="${student.cfslzjcxdh == 'E'}">
                                           <option value="A1" style="font-size: 16px">A1</option>
                                            <option value="A2" style="font-size: 16px">A2</option>
                                            <option value="A3" style="font-size: 16px">A3</option>
                                            <option value="B1" style="font-size: 16px">B1</option>
                                            <option value="B2" style="font-size: 16px">B2</option>
                                            <option value="C1" style="font-size: 16px">C1</option>
                                            <option value="C2" style="font-size: 16px">C2</option>
                                            <option value="C3" style="font-size: 16px">C3</option>
                                            <option value="C4" style="font-size: 16px">C4</option>
                                            <option value="D" style="font-size: 16px">D</option>
                                            <option selected="selected" value="E" style="font-size: 16px">E</option>
                                            <option value="F" style="font-size: 16px">F</option>
                                            <option value="M" style="font-size: 16px">M</option>
                                            <option value="N" style="font-size: 16px">N</option>
                                            <option value="P" style="font-size: 16px">P</option>
                                            <option value=" " style="font-size: 16px"></option>
                                       </c:if>
                                       <c:if test="${student.cfslzjcxdh == 'F'}">
                                           <option value="A1" style="font-size: 16px">A1</option>
                                            <option value="A2" style="font-size: 16px">A2</option>
                                            <option value="A3" style="font-size: 16px">A3</option>
                                            <option value="B1" style="font-size: 16px">B1</option>
                                            <option value="B2" style="font-size: 16px">B2</option>
                                            <option value="C1" style="font-size: 16px">C1</option>
                                            <option value="C2" style="font-size: 16px">C2</option>
                                            <option value="C3" style="font-size: 16px">C3</option>
                                            <option value="C4" style="font-size: 16px">C4</option>
                                            <option value="D" style="font-size: 16px">D</option>
                                            <option value="E" style="font-size: 16px">E</option>
                                            <option selected="selected"  value="F" style="font-size: 16px">F</option>
                                            <option value="M" style="font-size: 16px">M</option>
                                            <option value="N" style="font-size: 16px">N</option>
                                            <option value="P" style="font-size: 16px">P</option>
                                            <option value=" " style="font-size: 16px"></option>
                                       </c:if>
                                       <c:if test="${student.cfslzjcxdh == 'M'}">
                                           <option value="A1" style="font-size: 16px">A1</option>
                                            <option value="A2" style="font-size: 16px">A2</option>
                                            <option value="A3" style="font-size: 16px">A3</option>
                                            <option value="B1" style="font-size: 16px">B1</option>
                                            <option value="B2" style="font-size: 16px">B2</option>
                                            <option value="C1" style="font-size: 16px">C1</option>
                                            <option value="C2" style="font-size: 16px">C2</option>
                                            <option value="C3" style="font-size: 16px">C3</option>
                                            <option value="C4" style="font-size: 16px">C4</option>
                                            <option value="D" style="font-size: 16px">D</option>
                                            <option value="E" style="font-size: 16px">E</option>
                                            <option value="F" style="font-size: 16px">F</option>
                                            <option selected="selected" value="M" style="font-size: 16px">M</option>
                                            <option value="N" style="font-size: 16px">N</option>
                                            <option value="P" style="font-size: 16px">P</option>
                                            <option value=" " style="font-size: 16px"></option>
                                       </c:if>
                                       <c:if test="${student.cfslzjcxdh == 'N'}">
                                           <option value="A1" style="font-size: 16px">A1</option>
                                            <option value="A2" style="font-size: 16px">A2</option>
                                            <option value="A3" style="font-size: 16px">A3</option>
                                            <option value="B1" style="font-size: 16px">B1</option>
                                            <option value="B2" style="font-size: 16px">B2</option>
                                            <option value="C1" style="font-size: 16px">C1</option>
                                            <option value="C2" style="font-size: 16px">C2</option>
                                            <option value="C3" style="font-size: 16px">C3</option>
                                            <option value="C4" style="font-size: 16px">C4</option>
                                            <option value="D" style="font-size: 16px">D</option>
                                            <option value="E" style="font-size: 16px">E</option>
                                            <option value="F" style="font-size: 16px">F</option>
                                            <option value="M" style="font-size: 16px">M</option>
                                            <option selected="selected" value="N" style="font-size: 16px">N</option>
                                            <option value="P" style="font-size: 16px">P</option>
                                            <option value=" " style="font-size: 16px"></option>
                                       </c:if>
                                       <c:if test="${student.cfslzjcxdh == 'P'}">
                                           <option value="A1" style="font-size: 16px">A1</option>
                                            <option value="A2" style="font-size: 16px">A2</option>
                                            <option value="A3" style="font-size: 16px">A3</option>
                                            <option value="B1" style="font-size: 16px">B1</option>
                                            <option value="B2" style="font-size: 16px">B2</option>
                                            <option value="C1" style="font-size: 16px">C1</option>
                                            <option value="C2" style="font-size: 16px">C2</option>
                                            <option value="C3" style="font-size: 16px">C3</option>
                                            <option value="C4" style="font-size: 16px">C4</option>
                                            <option value="D" style="font-size: 16px">D</option>
                                            <option value="E" style="font-size: 16px">E</option>
                                            <option value="F" style="font-size: 16px">F</option>
                                            <option value="M" style="font-size: 16px">M</option>
                                            <option value="N" style="font-size: 16px">N</option>
                                            <option selected="selected" value="P" style="font-size: 16px">P</option>
                                            <option value=" " style="font-size: 16px"></option>
                                       </c:if>
                                       <c:if test="${student.cfslzjcxdh =='' || student.cfslzjcxdh ==null }">
                                           <option value="A1" style="font-size: 16px">A1</option>
                                            <option value="A2" style="font-size: 16px">A2</option>
                                            <option value="A3" style="font-size: 16px">A3</option>
                                            <option value="B1" style="font-size: 16px">B1</option>
                                            <option value="B2" style="font-size: 16px">B2</option>
                                            <option value="C1" style="font-size: 16px">C1</option>
                                            <option value="C2" style="font-size: 16px">C2</option>
                                            <option value="C3" style="font-size: 16px">C3</option>
                                            <option value="C4" style="font-size: 16px">C4</option>
                                            <option value="D" style="font-size: 16px">D</option>
                                            <option value="E" style="font-size: 16px">E</option>
                                            <option value="F" style="font-size: 16px">F</option>
                                            <option value="M" style="font-size: 16px">M</option>
                                            <option value="N" style="font-size: 16px">N</option>
                                            <option value="P" style="font-size: 16px">P</option>
                                            <option selected="selected"  value=" " style="font-size: 16px"></option>
                                       </c:if> 	 	 --%>
								</select>
							</td>
						</tr>
						<tr>
							<td>家庭地址:</td>
							<td colspan="2">
								<input  type="text" name="cfaddress" value="${student.cfaddress}"  style="color: gray;width:325px"/>
							</td>
							<td>是否计时收费:</td>
							<td>
								<select style="width: 204px;height: 31px" name="timingCharge">
									<c:if test="${student.timingCharge eq 1 }">
										<option value="0" >否</option>
										${student.timingCharge }
										<option value="1" selected="selected">是</option>
									</c:if>
									<c:if test="${student.timingCharge ne 1 }">
										<option value="0" selected="selected">否</option>
										<option value="1">是</option>
									</c:if>
								</select>
							</td>
							<td>班级:</td>
							<c:choose>
								<c:when test="${student.cfarrearage > 0}">
									<td class="clazz1">
										<input class="clazz"  type="text" value="${student.cfclazzName}" />
										<input  type="hidden" name="cfclazzid" value="${student.cfclazzid}"  />
									</td>
								</c:when>
								<c:otherwise>
									<td>
										<input class="clazz" disabled="disabled"  type="text" value="${student.cfclazzName}" />
										<input  type="hidden" name="cfclazzid" value="${student.cfclazzid}"  />
									</td>
								</c:otherwise>
							</c:choose>

						</tr>
						<tr>
							<td>联系地址:</td>
							<td colspan="2">
								<input  type="text" name="cflinkaddress" value="${student.cflinkaddress}"  style="color: gray;width:325px"/>
							</td>
							<td>优惠劵:</td>
							<td>
								<input  type="text" value="${student.cfyhj}" name="cfyhj" disabled="disabled" style="color: gray;"/>
							</td>
							<td>应收金额:</td>
							<td>
								<input  class="cfamount" value="${student.cfamount}" type="text"  disabled="disabled" style="color: gray;"/>
								<input class="cfamount" type="hidden" value="${student.cfamount}"  name="cfamount"   />
							</td>
						</tr>
						<tr>
							<td>暂住证号:</td>
							<td colspan="2">
								<input  type="text" name="cfzzzh" value="${student.cfzzzh}"  style="color: gray;width:325px"/>
							</td>
							<td>邮政编码:</td>
							<td>
								<input  type="text" name="cfyzbm" value="${student.cfyzbm}" style="color: gray;"/>
							</td>
							<td>已收:</td>
							<td>
								<input  type="text" name="cfreceived" disabled="disabled"  value="${student.cfreceived}" style="color: gray;"/>
								<input type="hidden" name="cfreceived" value="${student.cfreceived}" >
							</td>
						</tr>
						<tr>
							<td>手机:</td>
							<td colspan="2">
								<input  type="text" class="phone" name="cfsjhm" value="${student.cfsjhm}"  style="color: gray;width:325px"/>
							</td>
							<td>联系电话:</td>
							<td>
								<input  type="text" name="cflxdh" value="${student.cflxdh}"  style="color: gray;"/>
							</td>
							<td>优惠:</td>
							<td>
								<input  type="text" class="cffavorable"  disabled="disabled" value="${student.cffavorable}"  style="color: gray;"/>
								<input type="hidden" class="cffavorable" name="cffavorable" value="${student.cffavorable}" >
							</td>
						</tr>
						<tr>
							<td>培训计时卡:</td>
							<td colspan="2">
								<select style="width: 330px;height: 31px" name="cftimecard">
									<c:if test="${student.cftimecard eq 0}">
										<option selected="selected" value="0" style="font-size: 16px"></option>
										<option value="1" style="font-size: 16px">已发放 </option>
										<option value="2" style="font-size: 16px">未发放</option>
									</c:if>
									<c:if test="${student.cftimecard eq 1}">
										<option value="0" style="font-size: 16px"></option>
										<option selected="selected" value="1" style="font-size: 16px">已发放 </option>
										<option value="2" style="font-size: 16px">未发放</option>
									</c:if>
									<c:if test="${student.cftimecard eq 2}">
										<option value="0" style="font-size: 16px"></option>
										<option value="1" style="font-size: 16px">已发放 </option>
										<option selected="selected" value="2" style="font-size: 16px">未发放</option>
									</c:if>
								</select>
							</td>
							<td>电子邮箱:</td>
							<td>
								<input  type="text" name="cfemail" value="${student.cfemail}"  style="color: gray;"/>
							</td>
							<td>欠费:</td>
							<td>
								<input  class="cfarrearage" value="${student.cfarrearage}" type="text"  disabled="disabled"  style="color: gray;"/>
								<input class="cfarrearage" type="hidden" name="cfarrearage" value="${student.cfarrearage}" >
							</td>
						</tr>
						<tr>
							<td>推荐人:</td>
							<td colspan="2" >
								<input class="person" id = "edit_tjrName_id"

										<shiro:lacksPermission name="/cgStudentTjr">
											disabled="disabled"
										</shiro:lacksPermission>
									   style="width:325px" type="text"name="cftjrName" value="${student.cftjrName}" />
								<input  type="hidden" id = "edit_tjrID_id" name="cftjrid" value="${student.cftjrid}">

								<input  type="hidden" id="edit_oldTjrID_id" name="oldTjrID" value="${student.cftjrid}">
								<input  type="hidden" name="oldTjrName" value="${student.cftjrName}">
							</td>
							<td>部门:</td>
							<td>
								<input  type="text" name="cfdepartment" value="${student.cfdepartment}" disabled="disabled"   style="color: gray;"/>
							</td>
							<td>准考证明编号:</td>
							<td>
								<input  type="text" name="cfzkzmbh"  value="${student.cfzkzmbh}"  style="color: gray;"/>
							</td>
						</tr>
						<tr class="notTr">
							<td>本校外校:</td>
							<td colspan="2">
								<select style="width: 330px;height: 31px" name="cfbxwx">
									<c:forEach items="${bigCarDatas}" var="bigCarData">
										<c:choose>
											<c:when test="${student.cfbxwx eq bigCarData.fnumber}">
												<option selected="selected" value="${bigCarData.fnumber}">${bigCarData.carPostion}</option>
											</c:when>
											<c:otherwise>
												<option  value="${bigCarData.fnumber}">${bigCarData.carPostion}</option>
											</c:otherwise>
										</c:choose>
									</c:forEach>
								</select>
							</td>
							<td >
								<c:if test="${student.cfjnbjj eq 1}">
									<input checked="checked"  type="checkbox" name="cfjnbjj" value="" disabled="disabled"   style="color: gray;width: 15px;height: 15px"/>
									技能表已交接
								</c:if>
								<c:if test="${student.cfjnbjj ne 1}">
									<input   type="checkbox" name="cfjnbjj" value="" disabled="disabled"   style="color: gray;width: 15px;height: 15px"/>
									技能表已交接
								</c:if>
							</td>
							<td>

							</td>
							<td >
								<c:if test="${student.cfdajj eq 1}">
									<input checked="checked"  type="checkbox" name="cfjnbjj" value="" disabled="disabled"   style="color: gray;width: 15px;height: 15px"/>
									档案已交接
								</c:if>
								<c:if test="${student.cfdajj ne 1}">
									<input   type="checkbox" name="cfjnbjj" value="" disabled="disabled"   style="color: gray;width: 15px;height: 15px"/>
									档案已交接
								</c:if>
							</td>
						</tr>
						<tr>
							<td>备注:</td>
							<td colspan="2">
								<textarea name="cfdesc" rows="5" cols="48">${student.cfdesc}</textarea>
							</td>
							<td>预约考试备注:</td>
							<td >
								<textarea name="cftrainbespeakremark" rows="5" cols="28">${student.cftrainbespeakremark}</textarea>
							</td>
							<td>预约练车备注:</td>
							<td >
								<textarea name="cfexambespeakremark" rows="5" cols="28">${student.cfexambespeakremark}</textarea>
							</td>
						</tr>
					</table>
					<div>
					</div>
					<div class="div_tj" style="height: 100px;margin-top: 30px" >
						<shiro:hasPermission name="/selectStudentByFid">
							<div>
								<input type="submit" onclick="return checkSubmit()" class="input_submit bc" value="" style="margin-right: 30px">
							</div>
						</shiro:hasPermission>
						<shiro:hasPermission name="/changeStudentState">
							<c:if test="${student.cfstudentstate ne 14}">
								<div>
									<input type="button" class="input_submit zf"     onclick="cancelStudent(14)"  />
								</div>
							</c:if>
						</shiro:hasPermission>
						<shiro:hasPermission name="/changeStudentState1">
							<c:if test="${student.cfsnql ne 1}">
								<div>
									<input type="button" onclick="cancelStudent(1)" class="input_submit snql" value="">
								</div>
							</c:if>
						</shiro:hasPermission>
						<shiro:hasPermission name="/changeStudentState2">
							<c:if test="${student.cfwcql ne 1}">
								<div>
									<input type="button" class="input_submit wcql"     onclick="cancelStudent(0)"  />
								</div>
							</c:if>
						</shiro:hasPermission>
						<div>
							<input type="button" <%--onclick="history.back(-1)"--%> class="input_submit fh" value="">
						</div>
						<input  type="hidden" id="studentState">
					</div>
				</form>
			</div>
			<div class="div_log" style="display: none;margin: 0 40px">
				<table style="border-spacing: 0px">
					<tbody>
					<tr style="background: #f2f2f2;height: 40px;">
						<td width="200px" style="padding: 0;text-align: center;">业务日期</td>
						<td>功能模块</td>
						<td style="padding: 0 30px">内容</td>
						<td style="padding: 0 30px">操作人</td>
					</tr>
					<c:forEach items="${logs}" var="log">
						<tr style="height: 40px;">
							<td width="150px" style="padding: 0;text-align: center;">${log.fcreatetime}</td>
							<td>${log.fnameL2}</td>
							<td style="padding: 0 30px">${log.fdescriptionL2}</td>
							<td style="padding: 0 30px;width: 60px">${log.createName}</td>
						</tr>
					</c:forEach>
					</tbody>
				</table>

			</div>
			<div class="div_test" style="display: none;margin: 0 100px">
				<table style="border-spacing: 0px">
					<tbody>
					<tr style="height: 60px;">
						<td>科目一考试次数:</td>
						<td><input disabled="disabled"  type="text" name="cfnation"  value="${student.cfkmykss}"  style="color: gray;"/></td>
						<td>科目一合格日期:</td>
						<td>
							<input disabled="disabled" value="${student.cfkmyherq}" type="text" id="cfbirthday" name="cfbirthdays"  onclick="WdatePicker({el:'cfbirthday',dateFmt:'yyyy-MM-dd'})" >
							<img
									src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</td>
						<td>科目一不及格日期:</td>
						<td>
							<input disabled="disabled" value="${student.cfkmybjgsj}"  type="text" id="cfbirthday" name="cfbirthdays"  onclick="WdatePicker({el:'cfbirthday',dateFmt:'yyyy-MM-dd'})" >
							<img
									src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</td>
					</tr>
					<tr style="height: 60px;">
						<td>科目二考试次数:</td>
						<td><input disabled="disabled"  type="text" name="cfnation"  value="${student.cfkmekss}"  style="color: gray;"/></td>
						<td>科目二合格日期:</td>
						<td>
							<input disabled="disabled" value="${student.cfkmehgrq}"   type="text" id="cfbirthday" name="cfbirthdays"  onclick="WdatePicker({el:'cfbirthday',dateFmt:'yyyy-MM-dd'})" >
							<img
									src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</td>
						<td>科目二不及格日期:</td>
						<td>
							<input disabled="disabled" value="${student.cfkmebjgsj}"  type="text" id="cfbirthday" name="cfbirthdays"  onclick="WdatePicker({el:'cfbirthday',dateFmt:'yyyy-MM-dd'})" >
							<img
									src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</td>
					</tr>
					<tr style="height: 60px;">
						<td>科目三考试次数:</td>
						<td><input disabled="disabled"  type="text" name="cfnation"  value="${student.cfkmskss}"  style="color: gray;"/></td>
						<td>科目三合格日期:</td>
						<td>
							<input disabled="disabled"  value="${student.cfkmshgrq}" type="text" id="cfbirthday" name="cfbirthdays"  onclick="WdatePicker({el:'cfbirthday',dateFmt:'yyyy-MM-dd'})" >
							<img
									src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</td>
						<td>科目三不及格日期:</td>
						<td>
							<input disabled="disabled"  value="${student.cfkmsbjgsj}"  type="text" id="cfbirthday" name="cfbirthdays"  onclick="WdatePicker({el:'cfbirthday',dateFmt:'yyyy-MM-dd'})" >
							<img
									src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</td>
					</tr>
					<tr style="height: 60px;">
						<td>模拟考次数:</td>
						<td><input disabled="disabled"  value="${student.cfmnkcs}"  type="text" name="cfnation"   style="color: gray;"/></td>
						<td>模拟考分数:</td>
						<td><input disabled="disabled"  type="text" name="cfnation"  value="${student.cfmnkfs}"  style="color: gray;"/></td>
						<td>模拟考时间:</td>
						<td>
							<input disabled="disabled" type="text" id="cfbirthday"  value="${student.cfmnksj}" name="cfbirthdays"  onclick="WdatePicker({el:'cfbirthday',dateFmt:'yyyy-MM-dd'})" >
							<img
									src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</td>
					</tr>
					<tr style="height: 60px;">
						<td>科目一缺考次数:</td>
						<td><input disabled="disabled" type="text" name="cfnation"  value="${student.cfkmyqkcs}"  style="color: gray;"/></td>
						<td>科目一缺考时间:</td>
						<td>
							<input disabled="disabled" type="text"  value="${student.cfkmyksqksj}" id="cfbirthday" name="cfbirthdays"  onclick="WdatePicker({el:'cfbirthday',dateFmt:'yyyy-MM-dd'})" >
							<img
									src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</td>
					</tr>
					<tr style="height: 60px;">
						<td>科目二缺考次数:</td>
						<td><input disabled="disabled" type="text" name="cfnation"  value="${student.cfkmeqkcs}"  style="color: gray;"/></td>
						<td>科目二缺考时间:</td>
						<td>
							<input disabled="disabled" type="text" value="${student.cfkmeksqksj}" id="cfbirthday" name="cfbirthdays"  onclick="WdatePicker({el:'cfbirthday',dateFmt:'yyyy-MM-dd'})" >
							<img
									src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</td>
					</tr>
					<tr style="height: 60px;">
						<td>科目三缺考次数:</td>
						<td><input disabled="disabled" type="text" name="cfnation"  value="${student.cfkmsqkcs}"  style="color: gray;"/></td>
						<td>科目三缺考时间:</td>
						<td>
							<input disabled="disabled" value="${student.cfkmsksqksj}" type="text" id="cfbirthday" name="cfbirthdays"  onclick="WdatePicker({el:'cfbirthday',dateFmt:'yyyy-MM-dd'})" >
							<img
									src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</td>
					</tr>
					</tbody>
				</table>
			</div>


			<div class="div_file" style="display: none;margin: 0 100px;width: 300px">
				<table width="380px">
					<tr style="height: 60px">
						<td width="120px">手续状态:</td>
						<td width="200px"><input value="${student.cfdazt}" disabled="disabled" type="text" name="cfnation"    style="color: gray;"/></td>
					</tr>
					<tr style="height: 60px">
						<td width="120px">存放位置:</td>
						<td width="200px"><input value="${student.cfcfwz}" disabled="disabled" type="text" name="cfnation"    style="color: gray;"/></td>
					</tr>
					<tr style="height: 60px">
						<td width="120px">结业证编号:</td>
						<td width="200px"><input value="${student.cfjsybh}" disabled="disabled"  type="text" name="cfnation"    style="color: gray;"/></td>
					</tr>
					<tr>
						<td width="100px" style="padding-top: 60px">备注:</td>
						<td width="200px"><textarea disabled="disabled" rows="5" cols="28">${student.cfremark}</textarea>   </td>
					</tr>
					<tr class="notTr">
						<td width="100px">五次清零:</td>
						<td width="200px">
							<c:if test="${student.cfwcql eq 1}">
								<input style="width: 15px;height: 15px" checked="checked"  type="checkbox" disabled="disabled">
							</c:if>
							<c:if test="${student.cfwcql ne 1}">
								<input style="width: 15px;height: 15px"  type="checkbox" disabled="disabled">
							</c:if>
						</td>
					</tr>
					<tr class="notTr">
						<td width="100px">三年清零:</td>
						<td width="200px">
							<c:if test="${student.cfsnql eq 1}">
								<input style="width: 15px;height: 15px" checked="checked"  type="checkbox" disabled="disabled">
							</c:if>
							<c:if test="${student.cfsnql ne 1}">
								<input style="width: 15px;height: 15px"  type="checkbox" disabled="disabled">
							</c:if>
						</td>
					</tr>
				</table>
			</div>
			<div class="div_car" style="display: none;margin: 0 40px">
				<table style="border-spacing: 0px">
					<tbody>
					<tr style="height: 60px;">
						<td>科目二退练时间:</td>
						<td>
							<input disabled="disabled" value="${student.cfkmetlrq}"   type="text" id="cfbirthday" name="cfbirthdays"  onclick="WdatePicker({el:'cfbirthday',dateFmt:'yyyy-MM-dd'})" >
							<img
									src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</td>
						<td>科目二退练次数:</td>
						<td><input disabled="disabled" value="${student.cfbimudf0060}"  type="text" name="cfnation"   style="color: gray;"/></td>
						<td>科目二退练原因:</td>
						<td><input disabled="disabled"  value="${student.cfbimudf0061}"   type="text" name="cfnation"    style="color: gray;"/></td>
					</tr>
					<tr style="height: 60px;">
						<td>科目三退练时间:</td>
						<td>
							<input disabled="disabled" value="${student.cfkmstlrq}"  type="text" id="cfbirthday" name="cfbirthdays"  onclick="WdatePicker({el:'cfbirthday',dateFmt:'yyyy-MM-dd'})" >
							<img
									src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</td>
						<td>科目三退练次数:</td>
						<td><input disabled="disabled" value="${student.cfkmstlcs}"   type="text" name="cfnation"    style="color: gray;"/></td>
						<td>科目三退练原因:</td>
						<td><input disabled="disabled" value="${student.cfkmstlyy}"  type="text" name="cfnation"    style="color: gray;"/></td>
					</tr>
					<tr style="height: 60px;">
						<td>科目二练车班次:</td>
						<td><input disabled="disabled" value="${student.cfkmelcsjName}"  type="text" name="cfnation"    style="color: gray;"/></td>
						<td>科目三练车班次:</td>
						<td>
							<input disabled="disabled" value="${student.cfkmslcsjName}"   type="text" id="cfbirthday" name="cfbirthdays"  >
						</td>
					</tr>
					</tbody>
				</table>

			</div>
		</c:if>



	</div>
</div>
</body>
<script type="text/javascript">


    /*
    学员状态、推荐人id的全局变量
     */
    const $detailStudent_state = '${student.cfstudentstate}';

    const $detailStudent_tjrID = '${student.cftjrid}';

    console.log($detailStudent_tjrID+"------------------------");
    $(document).ready(function () {

        var type = "${type}";
        if (type == '0' || type == '' || type == null) {

        } else {
            //alert("添加成功");
            editAlert();
        }

    })

    $('.trainType').click(function(){
        $('#modal-overlay').css('visibility','visible')
        $('.modal-data').css('visibility','visible')
    })

    function cancelStudent(state){
        $('#studentState').val(state)
        $('.modal-data10').css('visibility','visible')
        $('#modal-overlay').css('visibility','visible')
        return false
    }

    $('#againstAuditsubmit').click(function () {
        $.ajax({
            url: '<%=path%>/DrivingSys/changeStudentState',
            type: "post",
            data: {
                'studentId': $('#fid').val(),
                'studentstate': $('#studentState').val(),
                'remark': $('#againstAuditcomment').val()
            },
            dataType: "json",
            success: function (res) {
                showAlert(res.cfdesc,'/selStudent/look.action')
                /*alert(res.msg)
                location= '<%=path%>/DrivingSys/selChangeClazz/look.action';*/
            },
            error: function () {
                alert('错误');
            }
        })
    })

    $('.btn').click(function(){
        $('#modal-overlay').css('visibility','hidden')
        $('.modal-data').css('visibility','hidden')
        $('.modal-data1').css('visibility','hidden')
        $('.modal-data2').css('visibility','hidden')
        $('input:checkbox').removeAttr('checked');
    })

    $('.subtn').click(function(){
        var spCodesTemp = "";
        $('input:checkbox[name=train]:checked').each(function(i){
            if(0==i){
                spCodesTemp = $(this).val();
            }else{
                spCodesTemp += (","+$(this).val());
            }
        });

        $.ajax({
            url:'<%=path%>/DrivingSys/selTrainTypeById',
            type: "post",
            data:{'id':spCodesTemp},
            dataType:"json",
            success: function(json) {
                var str=''
                var ids=''
                for(var i=0;i<json.length;i++){
                    str+=''+json[i].fnameL2+'  '
                    str+='   '
                    if(i>0){
                        ids+=','+json[i].fid+''
                    }else{
                        ids+=''+json[i].fid+''
                    }

                }
                $('.trainType input[type=text]').val(str)
                $('.trainType input[type=hidden]').val(ids)

                $('#modal-overlay').css('visibility','hidden')
                $('.modal-data').css('visibility','hidden')
            },
            error: function(){alert('Error');}
        });
    })

    $('.findBtn').click(function(){
        var name=$('.name').val()
        $.ajax({
            url:'<%=path%>/DrivingSys/selTrainTypeByName',
            type: "post",
            data:{'name':name},
            dataType:"json",
            success: function(json) {
                var str=''
                for(var i=0;i<json.length;i++) {
                    str+='<tr style="margin-top: 45px" class="typeData" ><td> '
                    str+='<input style="width: 15px;height: 15px" type="checkbox" name="train"  value="'+json[i].fid+'"></td>'
                    str+='<td>'+json[i].fnameL2+'</td><td>'+json[i].fnumber+'</td>'
                    str+='<td>'+json[i].fsimplename+'</td><td>'+json[i].fdescriptionL2+'</td>'
                    str+='<td>'+json[i].fcreatetime+'</td><td>'+json[i].fcreateName+'</td>'
                    str+='<td>'+json[i].flastupdatetime+'</td><td>'+json[i].flastupdateName+'</td></tr>'
                }
                $(".head tr:not(':first')").remove()
                $('.head').append(str)
            },
            error: function(){alert('Error');}
        });

    })

    $('.clazz1').click(function(){
        $('#modal-overlay').css('visibility','visible')
        $('.modal-data1').css('visibility','visible')
        $('input:checkbox').removeAttr('checked');
    })


    $('.findBtn1').click(function(){
        var name=$('.name1').val()
        $.ajax({
            url:'<%=path%>/DrivingSys/selClazzByName',
            type: "post",
            data:{'name':name},
            dataType:"json",
            success: function(json) {
                var str=''
                for(var i=0;i<json.length;i++) {
                    str+='<tr class="classData" style="margin-top: 45px" ><td><input style="width: 15px;height: 15px" '
                    str+='type="checkbox" name="train"  value="'+json[i].fid+'"></td>'
                    if( json[i].fnumber != null){
                        str+='<td>'+json[i].fnumber+'</td><td>'+json[i].fnameL2+'</td>'
                    }else{
                        str+='<td></td><td>'+json[i].fnameL2+'</td>'
                    }
                    if(json[i].fsimplename!=null){
                        str+='<td>'+json[i].cfprice+'</td><td>'+json[i].fsimplename+'</td>'
                    }else{
                        str+='<td>'+json[i].cfprice+'</td><td></td>'
                    }
                    if(json[i].fdescriptionL2!=null){
                        str+='<td>'+json[i].fdescriptionL2+'</td><td>'+json[i].fcreatetime+'</td>'
                    }else{
                        str+='<td></td><td>'+json[i].fcreatetime+'</td>'
                    }
                    str+='<td>'+json[i].createName+'</td><td>'+json[i].flastupdatetime+'</td>'
                    str+='<td>'+json[i].updateName+'</td><td>'+json[i].cfficompanyName+'</td>'
                    if(json[i].cfsycl!=null){
                        str+='<td>'+json[i].cfsycl+'</td>'
                    }else{
                        str+='<td></td>'
                    }
                    if (json[i].cfksf == '1'){
                        str+='<td><input style="width: 15px;height: 15px" type="checkbox" checked="checked" disabled="disabled"></td>'
                    } else {
                        str+='<td><input style="width: 15px;height: 15px" type="checkbox" disabled="disabled"></td>	'
                    }
                    if (json[i].cflc == '1'){
                        str+='<td><input style="width: 15px;height: 15px" type="checkbox" checked="checked" disabled="disabled"></td>'
                    } else {
                        str+='<td><input style="width: 15px;height: 15px" type="checkbox" disabled="disabled"></td>	'
                    }
                    if(json[i].cfvip=='1'){
                        str+='<td><input style="width: 15px;height: 15px" type="checkbox" checked="checked" disabled="disabled"></td>'
                    }else{
                        str+='<td><input style="width: 15px;height: 15px" type="checkbox" disabled="disabled"></td>	'
                    }
                    if(json[i].cftx=='1'){
                        str+='<td><input style="width: 15px;height: 15px" type="checkbox" checked="checked" disabled="disabled"></td>'
                    }else{
                        str+='<td><input style="width: 15px;height: 15px" type="checkbox" disabled="disabled"></td>	'
                    }
                    str+='<td>启用</td></tr>'
                }
                $(".head1 tr:not(':first')").remove()
                $('.head1').append(str)
            },
            error: function(){alert('Error');}
        });

    })



    $('.subtn1').click(function(){
        var spCodesTemp = "";
        $('input:checkbox[name=clazz]:checked').each(function(i){
            if(0==i){
                spCodesTemp = $(this).val();
            }else{
                spCodesTemp += (","+$(this).val());
            }
        });
        if(spCodesTemp == "null" || spCodesTemp == ""){
            alert("请选择班级")
        }else {
            $.ajax({
                url: '<%=path%>/DrivingSys/selClazzById',
                type: "post",
                data: {'id': spCodesTemp},
                dataType: "json",
                success: function (json) {
                    var str = ''
                    var ids = ''
                    var str1 = 0
                    for (var i = 0; i < json.length; i++) {
                        str += '' + json[i].fnameL2 + '  '
                        str += '   '
                        if (i > 0) {
                            ids += ',' + json[i].fid + ''
                        } else {
                            ids += '' + json[i].fid + ''
                        }
                        str1 += json[i].cfprice
                    }
                    $('.clazz1 input[type=text]').val(str)
                    $('.clazz1 input[type=hidden]').val(ids)
                    $(".cfamount").val(str1)
                    $('.cfarrearage').val(str1 - $('.cffavorable').val() - 0)
                    $('#modal-overlay').css('visibility', 'hidden')
                    $('.modal-data1').css('visibility', 'hidden')
                },
                error: function () {
                    alert('Error');
                }
            });


        }
    })

    $('.person').click(function(){

        $.ajax({
            url:'<%=path%>/DrivingSys/selectPerson',
            type: "post",
            data:{},
            dataType:"json",
            success: function(json) {
                var str=''
                for(var i=0;i<json.length;i++) {
                    str+='<tr style="margin-top: 45px" class="personData" ><td><input style="width: 15px;height: 15px" '
                    str+='type="checkbox" name="person"  value="'+json[i].fid+'"></td>'
                    if( json[i].fnumber != null){
                        str+='<td>'+json[i].fnumber+'</td><td>'+json[i].fnameL2+'</td>'
                    }else{
                        str+='<td></td><td>'+json[i].fnameL2+'</td>'
                    }
                    if(json[i].cfpersondepName!=null){
                        str+='<td>'+json[i].cfpersondepName+'</td>'
                    }else{
                        str+='<td></td>'
                    }
                    if(json[i].cfidcardno!=null){
                        str+='<td>'+json[i].cfidcardno+'</td>'
                    }else{
                        str+='<td></td>'
                    }
                    if(json[i].cfcell!=null){
                        str+='<td>'+json[i].cfcell+'</td>'
                    }else{
                        str+='<td></td>'
                    }
                    if(json[i].cfsex==1){
                        str+='<td>男</td>'
                    }else if(json[i].cfsex==2){
                        str+='<td>女</td>'
                    }else{
                        str+='<td></td>'
                    }
                    if(json[i].cfaddress!=null){
                        str+='<td>'+json[i].cfaddress+'</td>'
                    }else{
                        str+='<td></td>'
                    }
                    if(json[i].cfbirthdays!=null){
                        str+='<td>'+json[i].cfbirthdays+'</td>'
                    }else{
                        str+='<td></td>'
                    }
                    if(json[i].cfstartdate!=null){
                        str+='<td>'+json[i].cfstartdate+'</td>'
                    }else{
                        str+='<td></td>'
                    }
                    if(json[i].cfenddate!=null){
                        str+='<td>'+json[i].cfenddate+'</td>'
                    }else{
                        str+='<td></td>'
                    }
                    if(json[i].cfaccountsno!=null){
                        str+='<td>'+json[i].cfaccountsno+'</td>'
                    }else{
                        str+='<td></td>'
                    }
                    if(json[i].cfbegindate!=null){
                        str+='<td>'+json[i].cfbegindate+'</td>'
                    }else{
                        str+='<td></td>'
                    }
                    if(json[i].cfcarName!=null){
                        str+='<td>'+json[i].cfcarName+'</td>'
                    }else{
                        str+='<td></td>'
                    }
                    if(json[i].cfpersontype==null||json[i].cfpersontype==0){
                        str+='<td></td>'
                    }else if(json[i].cfpersontype==1){
                        str+='<td>办公室职员</td>'
                    }else if(json[i].cfpersontype==2){
                        str+='<td>教练</td>'
                    }else{
                        str+='<td>其他</td>'
                    }
                    if(json[i].cfhtdqsj!=null){
                        str+='<td>'+json[i].cfhtdqsj+'</td>'
                    }else{
                        str+='<td></td>'
                    }
                    if(json[i].cfxctz!=null){
                        str+='<td>'+json[i].cfxctz+'</td>'
                    }else{
                        str+='<td></td>'
                    }
                    if(json[i].cfgwyd!=null){
                        str+='<td>'+json[i].cfgwyd+'</td>'
                    }else{
                        str+='<td></td>'
                    }
                    if(json[i].cfqjjl!=null){
                        str+='<td>'+json[i].cfqjjl+'</td>'
                    }else{
                        str+='<td></td>'
                    }
                    if(json[i].cfwjjljl!=null){
                        str+='<td>'+json[i].cfwjjljl+'</td>'
                    }else{
                        str+='<td></td>'
                    }
                    if(json[i].cfshjljl!=null){
                        str+='<td>'+json[i].cfshjljl+'</td>'
                    }else{
                        str+='<td></td>'
                    }

                    if(json[i].cfzstc=='1'){
                        str+='<td><input style="width: 15px;height: 15px" type="checkbox" checked="checked" disabled="disabled"></td>'
                    }else{
                        str+='<td><input style="width: 15px;height: 15px" type="checkbox" disabled="disabled"></td>	'
                    }
                    if(json[i].cfpxtc=='1'){
                        str+='<td><input style="width: 15px;height: 15px" type="checkbox" checked="checked" disabled="disabled"></td>'
                    }else{
                        str+='<td><input style="width: 15px;height: 15px" type="checkbox" disabled="disabled"></td>	'
                    }
                }
                $(".head2 tr:not(':first')").remove()
                $('.head2').append(str)
            },
            error: function(){alert('Error');}
        });

        $('#modal-overlay').css('visibility','visible')
        $('.modal-data2').css('visibility','visible')
        $('input:checkbox').removeAttr('checked');

    })

    $('.findBtn2').click(function(){
        var name=$('.name2').val()
        $.ajax({
            url:'<%=path%>/DrivingSys/selPersonByName',
            type: "post",
            data:{'name':name},
            dataType:"json",
            success: function(json) {
                var str=''
                for(var i=0;i<json.length;i++) {
                    str+='<tr class="personData" style="margin-top: 45px" ><td><input style="width: 15px;height: 15px" '
                    str+='type="checkbox" name="person"  value="'+json[i].fid+'"></td>'
                    if( json[i].fnumber != null){
                        str+='<td>'+json[i].fnumber+'</td><td>'+json[i].fnameL2+'</td>'
                    }else{
                        str+='<td></td><td>'+json[i].fnameL2+'</td>'
                    }
                    if(json[i].cfpersondepName!=null){
                        str+='<td>'+json[i].cfpersondepName+'</td>'
                    }else{
                        str+='<td></td>'
                    }
                    if(json[i].cfidcardno!=null){
                        str+='<td>'+json[i].cfidcardno+'</td>'
                    }else{
                        str+='<td></td>'
                    }
                    if(json[i].cfcell!=null){
                        str+='<td>'+json[i].cfcell+'</td>'
                    }else{
                        str+='<td></td>'
                    }
                    if(json[i].cfsex==1){
                        str+='<td>男</td>'
                    }else if(json[i].cfsex==2){
                        str+='<td>女</td>'
                    }else{
                        str+='<td></td>'
                    }
                    if(json[i].cfaddress!=null){
                        str+='<td>'+json[i].cfaddress+'</td>'
                    }else{
                        str+='<td></td>'
                    }
                    if(json[i].cfbirthdays!=null){
                        str+='<td>'+json[i].cfbirthdays+'</td>'
                    }else{
                        str+='<td></td>'
                    }
                    if(json[i].cfstartdate!=null){
                        str+='<td>'+json[i].cfstartdate+'</td>'
                    }else{
                        str+='<td></td>'
                    }
                    if(json[i].cfenddate!=null){
                        str+='<td>'+json[i].cfenddate+'</td>'
                    }else{
                        str+='<td></td>'
                    }
                    if(json[i].cfaccountsno!=null){
                        str+='<td>'+json[i].cfaccountsno+'</td>'
                    }else{
                        str+='<td></td>'
                    }
                    if(json[i].cfbegindate!=null){
                        str+='<td>'+json[i].cfbegindate+'</td>'
                    }else{
                        str+='<td></td>'
                    }
                    if(json[i].cfcarName!=null){
                        str+='<td>'+json[i].cfcarName+'</td>'
                    }else{
                        str+='<td></td>'
                    }
                    if(json[i].cfpersontype==null||json[i].cfpersontype==0){
                        str+='<td></td>'
                    }else if(json[i].cfpersontype==1){
                        str+='<td>办公室职员</td>'
                    }else if(json[i].cfpersontype==2){
                        str+='<td>教练</td>'
                    }else{
                        str+='<td>其他</td>'
                    }
                    if(json[i].cfhtdqsj!=null){
                        str+='<td>'+json[i].cfhtdqsj+'</td>'
                    }else{
                        str+='<td></td>'
                    }
                    if(json[i].cfxctz!=null){
                        str+='<td>'+json[i].cfxctz+'</td>'
                    }else{
                        str+='<td></td>'
                    }
                    if(json[i].cfgwyd!=null){
                        str+='<td>'+json[i].cfgwyd+'</td>'
                    }else{
                        str+='<td></td>'
                    }
                    if(json[i].cfqjjl!=null){
                        str+='<td>'+json[i].cfqjjl+'</td>'
                    }else{
                        str+='<td></td>'
                    }
                    if(json[i].cfwjjljl!=null){
                        str+='<td>'+json[i].cfwjjljl+'</td>'
                    }else{
                        str+='<td></td>'
                    }
                    if(json[i].cfshjljl!=null){
                        str+='<td>'+json[i].cfshjljl+'</td>'
                    }else{
                        str+='<td></td>'
                    }

                    if(json[i].cfzstc=='1'){
                        str+='<td><input style="width: 15px;height: 15px" type="checkbox" checked="checked" disabled="disabled"></td>'
                    }else{
                        str+='<td><input style="width: 15px;height: 15px" type="checkbox" disabled="disabled"></td>	'
                    }
                    if(json[i].cfpxtc=='1'){
                        str+='<td><input style="width: 15px;height: 15px" type="checkbox" checked="checked" disabled="disabled"></td>'
                    }else{
                        str+='<td><input style="width: 15px;height: 15px" type="checkbox" disabled="disabled"></td>	'
                    }
                }
                $(".head2 tr:not(':first')").remove()
                $('.head2').append(str)
            },
            error: function(){alert('Error');}
        });




    })








    $('.subtn2').click(function(){
        var spCodesTemp = "";
        $('input:checkbox[name=person]:checked').each(function(i){
            if(0==i){
                spCodesTemp = $(this).val();
            }else{
                spCodesTemp += (","+$(this).val());
            }
        });
        if(spCodesTemp == "null" || spCodesTemp == ""){
            alert("请选择推荐人")
        }else {
            $.ajax({
                url: '<%=path%>/DrivingSys/selPersonById',
                type: "post",
                data: {'id': spCodesTemp},
                dataType: "json",
                success: function (json) {
                    /*可多选  */
                    /* var str=''
                    var ids=''

                    for(var i=0;i<json.length;i++){
                        str+=''+json[i].fnameL2+'  '
                        str+='   '
                        if(i>0){
                        ids+=','+json[i].fid+''
                        }else{
                        ids+=''+json[i].fid+''
                        }

                    } */

                    /* 取第一个  */
                    var str = '' + json[0].fnameL2 + ''
                    var ids = '' + json[0].fid + ''
                    $('.person2 input[type=text]').val(str)
                    $('.person2 input[type=hidden]').val(ids)

                    //修改的推荐人
                    $('#edit_tjrName_id').val(str)
                    $('#edit_tjrID_id').val(ids)
                    if($('#edit_oldTjrID_id').val() != ids)
                        $('input[name=isChangeStudent]').val(3)
                    $('.department').val(json[0].cfpersondepName)
                    $('#modal-overlay').css('visibility', 'hidden')
                    $('.modal-data2').css('visibility', 'hidden')
                },
                error: function () {
                    alert('Error');
                }
            });

        }

    })


    function getBase64Image(img) {
        var canvas = document.createElement("canvas");
        canvas.width = img.width;
        canvas.height = img.height;

        var ctx = canvas.getContext("2d");
        ctx.drawImage(img, 0, 0, img.width, img.height);

        var dataURL = canvas.toDataURL("image/png","0.8");
        //return dataURL

        return dataURL.replace("data:image/png;base64,", "");
    }


    function main() {
        var img = document.getElementById("images");
        img.onload = function () {
            var data = getBase64Image(img);
            $('#file').val(data)
        }
    }
    $('#readIdCard').click(function(){

        /* $('#image').attr('src','<%=path%>/DrivingSys/readTxtImage')*/
        $.ajax({
            url:'<%=path%>/DrivingSys/readTxtInformation',
            type: "post",
            dataType:"json",
            success: function(json) {
                /*  alert(json)*/
                if(json == null ){
                    alert('读取身份证信息失败！')
                }else{
                    $('#fnameL2').val(json.fnameL2)
                    $('#cfidcardno').val(json.cfidcardno)
                    $('#cfbirthday').val(json.cfbirthdays)
                    $('#cfnation').val(json.cfnation)
                    $('#cfaddress').val(json.cfaddress)
                    $(".cfsex option").each(function(){
                        if($(this).val() == json.cfsex){
                            $(this).attr("selected",true)
                        }
                    });
                    var img = document.getElementById("images");
                    img.src = 'readTxtImage?c='+Math.random()
                    main()
                }
            },
            error: function(){alert('Error');}
        });

    })



    function checkStudent() {
        var flags ;
        $.ajax({
            url:'<%=path%>/DrivingSys/checkStudentIsStart',
            type: "post",
            dataType:"json",
            data:{'fid':$('#fid').val(),'carType':$('#cfslzjcxdh').val(),'idno':$('#cfidcardno').val()},
            async:false,
            success: function(json) {
                /*  alert(json)*/
                if(json == null ){
                    flags = true
                }else{
                    alert(json.cfdesc)
                    flags = false
                }
            },
            error: function(){alert('Error');}
        });
        return flags
    }


    function checkSubmit(){
        /*  var studentFlag = checkStudent();

          if(!studentFlag){
              return false
          }*/

        if($('#fnameL2').val()== ''){
            alert('请填写姓名')
            return false
        }else{
            var pinyin = codefans_net_CC2PY($('#fnameL2').val());
            var szm = makePy($('#fnameL2').val())
            $("#cfshortpinyin").val(szm.toString().toLowerCase())
            $("#cfpinyin").val(pinyin)
        }
        if($('.clazz').val() == ''){
            alert('请选择班级')
            return false
        }
        if($('.person').val() == ''){
            alert('请选择推荐人')
            return false
        }
        if($('.phone').val() == ''){
            alert('请填写手机号码')
            return false
        }
        if($('#cfrxsj').val() == ''){
            alert('请填写入学日期')
            return false
        }
        var pattern = /^((1[3,5,6,8,9][0-9])|(14[5,7])|(17[0,1,3,6,7,8])|(19[7]))\d{8}$/;
        var isIDCard=/^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/
        if(!pattern.test($('.phone').val())){
            alert('您填写的手机号不正确')
            return false
        }

        if($('#cfidcardno').val()== ''){
            alert('请填写身份证')
            return false
        }else if(!isIDCard.test($('#cfidcardno').val())){
            alert('请填写正确的身份证')
            return false
        }else {

        }
        if($('#cfslzjcxdh').val() ==''){
            alert('请选择申请准驾车型号')
            return false
        }
		var cgStateFlag = false;

		var cgTjrFlag = false;

        if($('input[name=isChangeStudent]').val() == 2) {
            var msg = '学员状态已经更改，是否保存'
            $.messager.confirm('提示', msg , function (r) {
                if (!r) {
                }else{
                    $("form").submit();
                }
            })
            return false;
        } else if($('input[name=isChangeStudent]').val() == 3) {
            var msg = '推荐人已经更改，是否保存'
            $.messager.confirm('提示', msg , function (r) {
                if (!r) {
                }else{
                    $("form").submit();
                }
            })
            return false;
        } else {
            return true;
        }


        /*if($detailStudent_state != 'null'
            && $detailStudent_state != null
            && $detailStudent_state != ''
            && $detailStudent_state != undefined
            && $detailStudent_state != 'undefined'
            && $("select[name='cfstudentstate']").val() != $detailStudent_state)
        {
			cgStateFlag = true;
        }
        if($detailStudent_tjrID != 'null'
            && $detailStudent_tjrID != null
            && $detailStudent_tjrID != ''
            && $detailStudent_tjrID != undefined
            && $detailStudent_tjrID != 'undefined'
            && $("input[name='cftjrid']").val() != $detailStudent_tjrID)
        {

            cgTjrFlag = true;
        }

        var flag =false;

        if(cgTjrFlag || cgStateFlag)
        {
            var msg = '<b>你修改了';
            if(cgStateFlag)
            {
                msg+='#学员状态 ';
            }
            if(cgTjrFlag)
            {
                msg+='#推荐人 ';
            }
            msg+='，是否保存?</b>';
            $.messager.confirm('提示', msg, function (r) {
                if (!r) {
                    return false;
                }
                $('form').form('submit', {
                    url: "<%=path%>/DrivingSys/updateStudent",
                    success: function(){
                        $.messager.progress('close');	// hide progress bar while submit successfully
                    }
                });
            });

            return false;
        }
        else 
        {*/
            //防止表单重复提交
//        var isCommitted = false;
//            $('form').submit(function() {
//               if(isCommitted==false){
//                   isCommitted==true;
//                   return true;
//               }else{
//                   alert("不可以反复提交");
//                   return false;
//			   }
                if(typeof jQuery.data(this, "disabledOnSubmit") == 'undefined') {
                    jQuery.data(this, "disabledOnSubmit", { submited: true });
                    $('input[type=submit], input[type=button]', this).each(function() {
                        $(this).attr("disabled", "disabled");
                    });
                    return true;
                }
                else
                {
                    return false;
                }
//            });
        //}




    }



    $(function(){
        $(':checkbox[type="checkbox"]').each(function(){
            $(this).click(function(){
                if($(this).attr('checked')){
                    $(':checkbox[type="checkbox"]').removeAttr('checked');
                    $(this).attr('checked','checked');
                }
            });
        });
    });



    $('.input_submit.fh').click(function(){
        parent.closeSelectCard()
        /*location.href='<%=path%>/DrivingSys/selStudent/look.action'*/
    })

    $('.cfsllx').change(function(){
        var flag = 'C'
        if($(this).val() == '2' && $("#cfslzjcxdh").val()[0] != flag){
            $.ajax({
                url:'<%=path%>/DrivingSys/YhPrice',
                type: "post",
                dataType:"json",
                success: function(json) {
                    $('.cffavorable').val(json)
                    $('.cfarrearage').val($('.cfarrearage').val()-0-json)
                },
                error: function(){alert('Error');}
            });

        }else{
            $('.cfarrearage').val($('.cfamount').val())
            $('.cffavorable').val('0');
        }
    })

    $('#cfslzjcxdh').change(function(){
        var flag = 'C'
        if($('.cfsllx').val() == '2' && $(this).val()[0] != flag){
            $.ajax({
                url:'<%=path%>/DrivingSys/YhPrice',
                type: "post",
                dataType:"json",
                success: function(json) {
                    if($('.cffavorable').val() == 0){
                        $('.cffavorable').val(json)
                        $('.cfarrearage').val($('.cfarrearage').val()-0-json)
                    }

                },
                error: function(){alert('Error');}
            });

        }else{
            $('.cfarrearage').val($('.cfamount').val())
            $('.cffavorable').val('0');
        }
    })

    //判断是否更改学员状态
    $('.cfstudentstate').live('change',function(){
        $('input[name=isChangeStudent]').val(2)
    })


    //同步地址
    $('#cfaddress').live('change',function () {
        $('#cflinkaddress').val($(this).val())
    })

    //切换
    $(".top_zl").click(function(){
        $(".top_zl.active").removeClass("active")
        $(this).addClass("active")
        var name = $(this).text();
        if(name == '基础资料'){
            $('.div_form').show();
            $('.div_log').hide();
            $('.div_test').hide();
            $('.div_car').hide();
            $('.div_file').hide();
        }else if(name == '服务日志'){
            $('.div_form').hide();
            $('.div_log').show();
            $('.div_test').hide();
            $('.div_car').hide();
            $('.div_file').hide();
        }else if(name == '考试情况'){
            $('.div_form').hide();
            $('.div_log').hide();
            $('.div_test').show();
            $('.div_car').hide();
            $('.div_file').hide();
        }else if(name == '档案信息'){
            $('.div_form').hide();
            $('.div_log').hide();
            $('.div_test').hide();
            $('.div_car').hide();
            $('.div_file').show();
        }else if(name == '练车信息'){
            $('.div_form').hide();
            $('.div_log').hide();
            $('.div_test').hide();
            $('.div_car').show();
            $('.div_file').hide();
        }
    })

    //双击选择人员
    $('.personData').live('dblclick',function(){
        spCodesTemp = $(this).find('input').val()
        $.ajax({
            url:'<%=path%>/DrivingSys/selPersonById',
            type: "post",
            data:{'id':spCodesTemp},
            dataType:"json",
            success: function(json) {
                var str=''+json[0].fnameL2+''
                var ids=''+json[0].fid+''
                $('.person2 input[type=text]').val(str)
                $('.person2 input[type=hidden]').val(ids);

                //修改的推荐人
                $('#edit_tjrName_id').val(str)
                $('#edit_tjrID_id').val(ids)
                if($('#edit_oldTjrID_id').val() != ids)
                    $('input[name=isChangeStudent]').val(3)
                $('.department').val(json[0].cfpersondepName)
                $('#modal-overlay').css('visibility','hidden')
                $('.modal-data2').css('visibility','hidden')
            },
            error: function(){alert('Error');}
        });
    })

    $('.classData').live('dblclick',function(){
        spCodesTemp = $(this).find('input').val()
        $.ajax({
            url:'<%=path%>/DrivingSys/selClazzById',
            type: "post",
            data:{'id':spCodesTemp},
            dataType:"json",
            success: function(json) {
                var str=''
                var ids=''
                var str1=0
                str=json[0].fnameL2
                ids=json[0].fid
                str1=json[0].cfprice
                $("#cfslzjcxdh option").each(function(){
                    if($(this).val() == json[0].cfsycl){
                        $(this).attr("selected",true)
                    }
                });
                $('.clazz1 input[type=text]').val(str)
                $('.clazz1 input[type=hidden]').val(ids)
                $(".cfamount").val(str1)
                $('.cfarrearage').val(str1-$('.cffavorable').val()-0)
                $('#modal-overlay').css('visibility','hidden')
                $('.modal-data1').css('visibility','hidden')
            },
            error: function(){alert('Error');}
        });
    })


    $('.typeData').live('dblclick',function(){
        spCodesTemp = $(this).find('input').val()
        $.ajax({
            url:'<%=path%>/DrivingSys/selTrainTypeById',
            type: "post",
            data:{'id':spCodesTemp},
            dataType:"json",
            success: function(json) {
                var str=''
                var ids=''
                for(var i=0;i<json.length;i++){
                    str+=''+json[i].fnameL2+'  '
                    str+='   '
                    if(i>0){
                        ids+=','+json[i].fid+''
                    }else{
                        ids+=''+json[i].fid+''
                    }

                }
                $('.trainType input[type=text]').val(str)
                $('.trainType input[type=hidden]').val(ids)

                $('#modal-overlay').css('visibility','hidden')
                $('.modal-data').css('visibility','hidden')
            },
            error: function(){alert('Error');}
        });
    })

    //单击选中复选框
    $("tr:not(.notTr)").live('click',function(){
        var check = $(this).find("input[type='checkbox']");
        var flags = $(this).find("input[type='checkbox']").html()
        if(typeof flags === 'undefined'){}
        else {
            if(check){

                var flag = check[0].checked;
                if(flag){
                    check[0].checked = false;
                }else{
                    check[0].checked = true;
                }
            }
            $("tr input[type='checkbox']").attr("checked", false);
            $(this).find("input[type='checkbox']:first").attr("checked", true);
        }
    });

    /*    /!* $("tr input[type='checkbox']").live('click', function(){
             if ($(this).attr("checked") == true) {
                 $("tr input[type='checkbox']").attr("checked", false);
                 $(this).attr("checked", true);
             };
         });
         *!/*/
    //阻止复选框进行冒泡事件
    $("tr input[type='checkbox']").live('click',function(e){
        e.stopPropagation();
    });

    //填写身份证
    $('#cfidcardno').live('blur',function(){
        var isIDCard=/^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/
        if ( $(this).val().length == 18 ) {
            var dates = $(this).val().substring(6 ,14)
            var sexFlag = $(this).val().substring(16 ,17)
            if(sexFlag%2 == 0)
                sexFlag = 2
            else sexFlag = 1
            $(".cfsex option").each(function(){
                if($(this).val() == sexFlag){
                    $(this).attr("selected",true)
                }
            });
            var year = dates.substring(0,4)
            var month = dates.substring(4,6)
            var day = dates.substring(6,8)
            var date = year+'-'+month+"-"+day
            $('#cfbirthday').val(date)
            var nowDateTime  = new Date();
            var age = nowDateTime.getFullYear() - year;
            if (nowDateTime.getMonth()+1 < month || (nowDateTime.getMonth()+1 == month && nowDateTime.getDate() < day)) {
                age--;
            }
            $('.fdescriptionL1').val(age)
        }else if(!isIDCard.test($(this).val())){
            alert('请填写正确的身份证')
            return false
        }else {
            alert('请确认身份证长度是否正确')
            return false
        }
    })


</script>
</html>